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

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

Issue 11569014: Issue 6974. Report warning when arguments are given for 'dynamic' or type variable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 491b4cc95cc408f1c9e2cf5f6c43c51555b477f7..bc788f8491e7d2c4e5aba42459469d34be31c4ba 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -117,7 +117,7 @@ public enum ResolverErrorCode implements ErrorCode {
// TODO(zundel): error message needs JUnit test (reachable code?)
EXPECTED_STATIC_FIELD("expected a static field, but got %s"),
// TODO(zundel): error message needs JUnit test, (reachable code?)
- EXTRA_TYPE_ARGUMENT("Type variables may not have type arguments"),
+ EXTRA_TYPE_ARGUMENT(ErrorSeverity.WARNING, "Type variables may not have type arguments"),
FACTORY_CANNOT_BE_CONST("A factory cannot be const"),
FIELD_DOES_NOT_HAVE_A_GETTER(ErrorSeverity.WARNING, "Field does not have a getter"),
FIELD_DOES_NOT_HAVE_A_SETTER(ErrorSeverity.WARNING, "Field does not have a setter"),

Powered by Google App Engine
This is Rietveld 408576698