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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java

Issue 19018005: NEW_WITH_INVALID_TYPE_PARAMETERS is warning (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
index ba2a1c9ae68b5cbd597e916f1dbffd29ed601deb..7fa747692a34c51bd297e47b62f4f16672e4321d 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
@@ -439,6 +439,18 @@ public enum StaticWarningCode implements ErrorCode {
NEW_WITH_ABSTRACT_CLASS("Abstract classes cannot be created with a 'new' expression"),
/**
+ * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a static warning.
+ *
+ * @param typeName the name of the type being referenced (<i>S</i>)
+ * @param parameterCount the number of type parameters that were declared
+ * @param argumentCount the number of type arguments provided
+ * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS
+ * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS
+ */
+ NEW_WITH_INVALID_TYPE_PARAMETERS(
+ "The type '%s' is declared with %d type parameters, but %d type arguments were given"),
+
+ /**
* 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible in the current scope,
* optionally followed by type arguments.
*

Powered by Google App Engine
This is Rietveld 408576698