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)); |