Index: pkg/compiler/lib/src/resolution/class_members.dart |
diff --git a/pkg/compiler/lib/src/resolution/class_members.dart b/pkg/compiler/lib/src/resolution/class_members.dart |
index aca4df5b874d20a34c61ceccb7ccda5c1a329886..8e6f85e38072cd2d6cdcef4b9fa3756597901b42 100644 |
--- a/pkg/compiler/lib/src/resolution/class_members.dart |
+++ b/pkg/compiler/lib/src/resolution/class_members.dart |
@@ -310,6 +310,7 @@ abstract class MembersCreator { |
assert(!cls.isAbstract); |
ClassElement functionClass = resolution.coreClasses.functionClass; |
+ functionClass.ensureResolved(resolution); |
if (cls.asInstanceOf(functionClass) == null) return; |
if (cls.lookupMember(Identifiers.call) != null) return; |
// TODO(johnniwinther): Make separate methods for backend exceptions. |
@@ -688,8 +689,7 @@ class InterfaceMembersCreator extends MembersCreator { |
bool allAreGetters = true; |
Map<DartType, Setlet<Member>> subtypesOfAllInherited = |
new Map<DartType, Setlet<Member>>(); |
- outer: |
- for (Member inherited in inheritedMembers) { |
+ outer: for (Member inherited in inheritedMembers) { |
if (inherited.isGetter) { |
someAreGetters = true; |
if (!allAreGetters) break outer; |