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

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

Issue 10546118: Issue 3534. It is a compile-time error if a typedef refers to itself (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
index 303ee79c6e8dd9041d38e9f85284e7a083b9b433..e73cb1a3fc2ac891b908d4fd38918ffc9143fba8 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
@@ -58,6 +58,7 @@ public enum TypeErrorCode implements ErrorCode {
"static member %s of %s cannot be accessed through an instance"),
SUPERTYPE_HAS_FIELD(ErrorSeverity.ERROR, "%s is a field in %s"),
SUPERTYPE_HAS_METHOD(ErrorSeverity.ERROR, "%s is a method in %s"),
+ TYPE_ALIAS_CANNOT_REFERENCE_ITSELF(ErrorSeverity.ERROR, "Type alias cannot reference itself directly of via other typedefs"),
TYPE_VARIABLE_IN_STATIC_CONTEXT("cannot access type variable %s in static context"),
TYPE_NOT_ASSIGNMENT_COMPATIBLE("'%s' is not assignable to '%s'"),
USE_ASSIGNMENT_ON_SETTER("Use assignment to set field \"%s\" in %s"),
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698