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

Unified Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 10542094: Issue 3477. Report error when built-in identifier used as type name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/parser/ParserErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
index 9afdbc86470222cdcb0829ec542f3432430d2819..2fc2fbc807e75e76b28ffa7841c9f517ac183ba1 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -19,6 +19,9 @@ public enum ParserErrorCode implements ErrorCode {
ABSTRACT_METHOD_WITH_BODY("Abstract method cannot have a body"),
ABSTRACT_TOP_LEVEL_ELEMENT("Only class can be abstract top-level element"),
BREAK_OUTSIDE_OF_LOOP("'break' used outside of loop, case statement"),
+ BUILT_IN_IDENTIFIER_AS_TYPE_NAME("Built-in identifier can not be used as type name"),
Brian Wilkerson 2012/06/11 15:11:46 "can not" --> "cannot"
+ BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME("Built-in identifier can not be used as type alias name"),
+ BUILT_IN_IDENTIFIER_AS_TYPE_VARIABLE_NAME("Built-in identifier can not be used as type variable name"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT(

Powered by Google App Engine
This is Rietveld 408576698