Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
index 2e554e5dd8eab17d16f09747b3a8f1519bdef874..cb3fb15fc68c3ffd6f91253763ca7fdb37a70dc8 100644 |
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
@@ -950,7 +950,7 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>> |
T get thisType { |
if (_thisType != null) return _thisType; |
ClassElement cls = outermostElement.enclosingClass; |
- ClassWorld classWorld = compiler.world; |
+ ClassWorld classWorld = compiler.closedWorld; |
if (classWorld.isUsedAsMixin(cls)) { |
return _thisType = types.nonNullSubtype(cls); |
} else { |