Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1068)

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 10544068: Issue 3307. Report error when built-in identifier used as type annotation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Status file changes after new co19 Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
index 02bb619972d1525331d20ab3e92824191bcc5b9f..deeb2003ff0e8cd36beec92e91b575c2e2e4b844 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -13,6 +13,7 @@ import com.google.dart.compiler.SubSystem;
public enum ResolverErrorCode implements ErrorCode {
BLACK_LISTED_EXTENDS("'%s' can not be used as superclass"),
BLACK_LISTED_IMPLEMENTS("'%s' can not be used as superinterface"),
+ BUILT_IN_IDENTIFIER_AS_TYPE("Build-in identifier '%s' cannot be used as a type annotation"),
CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"),
CANNOT_ACCESS_METHOD(ErrorSeverity.WARNING, "Cannot access private method '%s'"),
CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer function"),

Powered by Google App Engine
This is Rietveld 408576698