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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_engine.dart

Issue 2977683002: Fix crash in inference (Closed)
Patch Set: Created 3 years, 5 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 | tests/language/regress_30121_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
index 1f68137b3adeeb995e1843ce73d4928b46441b9b..ea92ddbe98a771da3c499ea1806bbd1b1c61fc4d 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
@@ -391,6 +391,9 @@ class InferrerEngine {
assert(calledElement.isGenerativeConstructor);
ClassElement cls = calledElement.enclosingClass;
MethodElement callMethod = cls.lookupMember(Identifiers.call);
+ if (callMethod == null) {
+ callMethod = cls.lookupMember(Identifiers.noSuchMethod_);
Siggi Cherem (dart-lang) 2017/07/11 16:53:39 I don't recall this changing in your CLs last week
Johnni Winther 2017/07/12 08:13:07 Ancient bug!
+ }
assert(callMethod != null, failedAt(cls));
Iterable<FunctionEntity> elements = [callMethod];
trace(elements, new ClosureTracerVisitor(elements, info, this));
« no previous file with comments | « no previous file | tests/language/regress_30121_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698