| Index: dart/pkg/compiler/lib/src/typechecker.dart
|
| diff --git a/dart/pkg/compiler/lib/src/typechecker.dart b/dart/pkg/compiler/lib/src/typechecker.dart
|
| index 2243375dcd4c3fba695d7ee905ff5f6961418549..61dbd7d486809c82f62669dfc07f60aa63c52f60 100644
|
| --- a/dart/pkg/compiler/lib/src/typechecker.dart
|
| +++ b/dart/pkg/compiler/lib/src/typechecker.dart
|
| @@ -254,8 +254,8 @@ class TypeCheckerVisitor extends Visitor<DartType> {
|
|
|
| final ClassElement currentClass;
|
|
|
| - InterfaceType thisType;
|
| - InterfaceType superType;
|
| + DartType thisType;
|
| + DartType superType;
|
|
|
| Link<DartType> cascadeTypes = const Link<DartType>();
|
|
|
| @@ -339,6 +339,10 @@ class TypeCheckerVisitor extends Visitor<DartType> {
|
| if (currentClass != null) {
|
| thisType = currentClass.thisType;
|
| superType = currentClass.supertype;
|
| + } else {
|
| + // If these are used, an error should have been reported by the resolver.
|
| + thisType = const DynamicType();
|
| + superType = const DynamicType();
|
| }
|
| }
|
|
|
|
|