| Index: lib/compiler/implementation/typechecker.dart
|
| diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
|
| index fc82c88311e9514d7b9eadbbafb61a800efa1a99..a91b543db87e19fdafe0fe5063e8ca1c833fba0c 100644
|
| --- a/lib/compiler/implementation/typechecker.dart
|
| +++ b/lib/compiler/implementation/typechecker.dart
|
| @@ -395,7 +395,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
|
| DartType returnType;
|
| DartType previousType;
|
| final FunctionElement element = elements[node];
|
| - if (Element.isInvalid(element)) return types.dynamicType;
|
| + if (Element.isUnresolved(element)) return types.dynamicType;
|
| if (element.kind === ElementKind.GENERATIVE_CONSTRUCTOR ||
|
| element.kind === ElementKind.GENERATIVE_CONSTRUCTOR_BODY) {
|
| type = types.dynamicType;
|
| @@ -573,7 +573,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
|
| if (memberType.element === compiler.dynamicClass) return null;
|
| return memberType;
|
| } else {
|
| - if (element === null) {
|
| + if (Element.isUnresolved(element)) {
|
| fail(node, 'unresolved ${node.selector}');
|
| } else if (element.kind === ElementKind.FUNCTION) {
|
| return computeType(element);
|
| @@ -710,7 +710,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
|
| }
|
|
|
| DartType computeType(Element element) {
|
| - if (Element.isInvalid(element)) return types.dynamicType;
|
| + if (Element.isUnresolved(element)) return types.dynamicType;
|
| DartType result = element.computeType(compiler);
|
| return (result !== null) ? result : types.dynamicType;
|
| }
|
|
|