Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart

Issue 2006143007: fix warning in noSuchMethod registry (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc57616870e054bebb40dad00c2c7b24b2f4b8a1..678f805a9edb0f35a0afd589d6bf3a765fe33225 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
@@ -208,8 +208,9 @@ class NoSuchMethodRegistry {
}
if (expr is Send &&
expr.isTypeCast &&
+ expr.typeAnnotationFromIsCheckOrCast.typeName is Identifier &&
expr.typeAnnotationFromIsCheckOrCast.typeName.source == "dynamic") {
- expr = expr.receiver;
+ expr = (expr as Send).receiver;
}
if (expr is Send &&
expr.isSuperCall &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698