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 7b913b0d2590c9217c66ff6ef6951a4367393d8a..ccc115548367718c835645885dffcb82d77f120f 100644 |
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
@@ -751,6 +751,8 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>> |
DiagnosticReporter get reporter => compiler.reporter; |
+ ClosedWorld get closedWorld => compiler.closedWorld; |
+ |
@override |
SemanticSendVisitor get sendVisitor => this; |
@@ -963,7 +965,6 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>> |
T get thisType { |
if (_thisType != null) return _thisType; |
ClassElement cls = outermostElement.enclosingClass; |
- ClosedWorld closedWorld = compiler.closedWorld; |
if (closedWorld.isUsedAsMixin(cls)) { |
return _thisType = types.nonNullSubtype(cls); |
} else { |