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

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

Issue 9963082: Dartc's 'can't use a type variable in static context' message now works the same way as 'NO_SUCH_TY… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/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 11e9d60e242bdb2e31997698db5dc81e462fdf60..7d82aef759f911d96540c14439816f06a1976dab 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
@@ -54,6 +54,7 @@ public enum TypeErrorCode implements ErrorCode {
"static member %s of %s cannot be accessed through an instance"),
SUPERTYPE_HAS_FIELD("%s is a field in %s"),
SUPERTYPE_HAS_METHOD("%s is a method in %s"),
+ 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"),
VOID("expression does not yield a value"),

Powered by Google App Engine
This is Rietveld 408576698