| Index: dart/pkg/compiler/lib/src/resolution/members.dart
|
| diff --git a/dart/pkg/compiler/lib/src/resolution/members.dart b/dart/pkg/compiler/lib/src/resolution/members.dart
|
| index 74ec34ed69822593b30a10e80cef15ad78e02202..0210a4afda84bb058f3c2fe43ac3a2abb4993663 100644
|
| --- a/dart/pkg/compiler/lib/src/resolution/members.dart
|
| +++ b/dart/pkg/compiler/lib/src/resolution/members.dart
|
| @@ -1873,10 +1873,13 @@ class TypeResolver {
|
| ambiguous.messageKind, ambiguous.messageArguments);
|
| ambiguous.diagnose(registry.mapping.analyzedElement, compiler);
|
| } else if (element.isErroneous) {
|
| - ErroneousElement erroneousElement = element;
|
| - type = reportFailureAndCreateType(
|
| - erroneousElement.messageKind, erroneousElement.messageArguments,
|
| - erroneousElement: erroneousElement);
|
| + if (element is ErroneousElement) {
|
| + type = reportFailureAndCreateType(
|
| + element.messageKind, element.messageArguments,
|
| + erroneousElement: element);
|
| + } else {
|
| + type = const DynamicType();
|
| + }
|
| } else if (!element.impliesType) {
|
| type = reportFailureAndCreateType(
|
| MessageKind.NOT_A_TYPE, {'node': node.typeName});
|
|
|