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

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

Issue 10908103: Use of undefined class in const constructor should be an error (issue 4882) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
===================================================================
--- compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java (revision 11901)
+++ compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java (working copy)
@@ -52,6 +52,7 @@
MISSING_RETURN_VALUE("no return value; expected a value of type %s"),
NO_SUCH_NAMED_PARAMETER("no such named parameter \"%s\" defined"),
NO_SUCH_TYPE("no such type \"%s\"", true),
+ NO_SUCH_TYPE_CONST(ErrorSeverity.ERROR, "no such type \"%s\" in constant constructor", true),
NOT_A_FUNCTION_TYPE("\"%s\" is not a function type"),
NOT_A_MEMBER_OF("\"%s\" is not a member of %s"),
NOT_A_METHOD_IN("\"%s\" is not a method in %s"),

Powered by Google App Engine
This is Rietveld 408576698