Index: pkg/analyzer/lib/src/task/dart.dart |
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart |
index 140ceb1de12ee26c7b236077905ade0d8d3136df..e309717e8759e5bb6dfa5f2393c408c052049ed2 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -3764,7 +3764,7 @@ class InferStaticVariableTypeTask extends InferStaticVariableTask { |
ResolutionContextBuilder.contextFor(initializer); |
ResolverVisitor visitor = new ResolverVisitor( |
variable.library, variable.source, typeProvider, errorListener, |
- nameScope: resolutionContext.scope, isTopLevelInference: true); |
+ nameScope: resolutionContext.scope); |
if (resolutionContext.enclosingClassDeclaration != null) { |
visitor.prepareToResolveMembersInClass( |
resolutionContext.enclosingClassDeclaration); |