| Index: pkg/compiler/lib/src/parser/element_listener.dart
|
| diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
|
| index 0925a1c5ca100c04b4d61bd01d4bf6eeea05e0c6..777ab85a746261054ae6828a52e0adb0f10201c6 100644
|
| --- a/pkg/compiler/lib/src/parser/element_listener.dart
|
| +++ b/pkg/compiler/lib/src/parser/element_listener.dart
|
| @@ -717,6 +717,16 @@ class ElementListener extends Listener {
|
| case ErrorKind.Unspecified:
|
| errorCode = MessageKind.GENERIC;
|
| break;
|
| +
|
| + case ErrorKind.BuiltInIdentifierAsType:
|
| + errorCode = MessageKind.GENERIC;
|
| + arguments = {"text": "Can't use '${token.lexeme}' as a type."};
|
| + break;
|
| +
|
| + case ErrorKind.BuiltInIdentifierInDeclaration:
|
| + errorCode = MessageKind.GENERIC;
|
| + arguments = {"text": "Can't use '${token.lexeme}' as a name here."};
|
| + break;
|
| }
|
| SourceSpan span = reporter.spanFromToken(token);
|
| reportError(span, errorCode, arguments);
|
|
|