Index: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
diff --git a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
index 4bc53840c9c0513f130397c9ef55ac88305f63a5..bc57616870e054bebb40dad00c2c7b24b2f4b8a1 100644 |
--- a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
+++ b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
@@ -207,6 +207,11 @@ class NoSuchMethodRegistry { |
} |
} |
if (expr is Send && |
+ expr.isTypeCast && |
+ expr.typeAnnotationFromIsCheckOrCast.typeName.source == "dynamic") { |
+ expr = expr.receiver; |
+ } |
+ if (expr is Send && |
expr.isSuperCall && |
expr.selector is Identifier && |
(expr.selector as Identifier).source == Identifiers.noSuchMethod_) { |