| Index: lib/compiler/implementation/ssa/optimize.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/optimize.dart (revision 14391)
|
| +++ lib/compiler/implementation/ssa/optimize.dart (working copy)
|
| @@ -616,7 +616,7 @@
|
| HInstruction visitInvokeDynamicSetter(HInvokeDynamicSetter node) {
|
| Element field =
|
| findConcreteFieldForDynamicAccess(node.receiver, node.selector);
|
| - if (field == null) return node;
|
| + if (field == null || !field.isAssignable()) return node;
|
| HInstruction value = node.inputs[1];
|
| if (compiler.enableTypeAssertions) {
|
| HInstruction other = value.convertType(
|
|
|