Index: sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart b/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart |
index 85122e519c1cfd4d7da430937293d28bcfe32da8..af26952365a39f9ea6259e826f21056c96e18258 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart |
@@ -1402,7 +1402,7 @@ class IrBuilder extends ResolvedVisitor<ir.Primitive> { |
assignedVars[variableIndex[element]] = valueToStore; |
} else if ((!node.isSuperCall && Elements.isErroneousElement(element)) || |
Elements.isStaticOrTopLevel(element)) { |
- assert(element.isField || element.isSetter); |
+ assert(element.isErroneous || element.isField || element.isSetter); |
Selector selector = elements.getSelector(node); |
continueWithExpression( |
(k) => new ir.InvokeStatic(element, selector, k, [valueToStore])); |