Index: pkg/compiler/lib/src/typechecker.dart |
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart |
index 750357eb8b074fa4869140c97907fdeb2003a0ad..85710b11d3da5cbf9d040e3dd29402925f1cfc42 100644 |
--- a/pkg/compiler/lib/src/typechecker.dart |
+++ b/pkg/compiler/lib/src/typechecker.dart |
@@ -1057,7 +1057,10 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
} else if (element.isFunction) { |
// foo() where foo is a method in the same class. |
return createResolvedAccess(node, name, element); |
- } else if (element.isVariable || element.isParameter || element.isField) { |
+ } else if (element.isVariable || |
+ element.isParameter || |
+ element.isField || |
+ element.isInitializingFormal) { |
// foo() where foo is a field in the same class. |
return createResolvedAccess(node, name, element); |
} else if (element.isGetter || element.isSetter) { |