Chromium Code Reviews| Index: lib/compiler/implementation/resolver.dart |
| =================================================================== |
| --- lib/compiler/implementation/resolver.dart (revision 11297) |
| +++ lib/compiler/implementation/resolver.dart (working copy) |
| @@ -930,7 +930,7 @@ |
| ResolverVisitor(Compiler compiler, Element element) |
| : this.mapping = new TreeElementMapping(), |
| this.enclosingElement = element, |
| - inInstanceContext = element.isInstanceMember() |
| + inInstanceContext = (element.isInstanceMember() && !element.isField()) |
|
karlklose
2012/08/24 11:46:22
Please add a comment explaining why 'fields are no
ngeoffray
2012/08/24 13:01:41
Done.
|
| || element.isGenerativeConstructor(), |
| this.currentClass = element.isMember() ? |
| element.getEnclosingClass() : |