| Index: lib/compiler/implementation/resolver.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/resolver.dart (revision 11297)
|
| +++ lib/compiler/implementation/resolver.dart (working copy)
|
| @@ -930,7 +930,10 @@
|
| ResolverVisitor(Compiler compiler, Element element)
|
| : this.mapping = new TreeElementMapping(),
|
| this.enclosingElement = element,
|
| - inInstanceContext = element.isInstanceMember()
|
| + // When the element is a field, we are actually resolving its
|
| + // initial value, which should not have access to instance
|
| + // fields.
|
| + inInstanceContext = (element.isInstanceMember() && !element.isField())
|
| || element.isGenerativeConstructor(),
|
| this.currentClass = element.isMember() ?
|
| element.getEnclosingClass() :
|
|
|