| Index: lib/compiler/implementation/typechecker.dart
|
| diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
|
| index fbf0cece90c33e08aaf529e95ae8eaeff874b575..9344d233a888ae4952a10597793b9728a97218d7 100644
|
| --- a/lib/compiler/implementation/typechecker.dart
|
| +++ b/lib/compiler/implementation/typechecker.dart
|
| @@ -339,7 +339,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
|
| }
|
| Type previous = expectedReturnType;
|
| expectedReturnType = returnType;
|
| - if (element.isMember()) currentClass = element.enclosingElement;
|
| + if (element.isMember()) currentClass = element.getEnclosingClass();
|
| StatementType bodyType = analyze(node.body);
|
| if (returnType != types.voidType && returnType != types.dynamicType
|
| && bodyType != StatementType.RETURNING) {
|
|
|