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

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

Issue 8747016: Fix for resolving interface constructors in factory, issue 521. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for error messages. Created 9 years, 1 month 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 8be8e661936fe32469535a6e7c3e90e9ac4ddd4a..64afe6b200c8dbc76226a053743887381a07729d 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -79,8 +79,9 @@ public enum ResolverErrorCode implements ErrorCode {
METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"),
NAME_CLASHES_EXISTING_MEMBER(
"name clashes with a previously defined member at %sline %d column %d"),
- NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),
NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),
+ NEW_EXPRESSION_FACTORY_CONSTRUCTOR("Can not resolve constructor with name '%s' in factory '%s'"),
zundel 2011/11/30 21:22:14 this looks more like the message the VM gives.
+ NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),
NO_SUCH_TYPE("no such type \"%s\""),
NO_SUCH_TYPE_CONSTRUCTOR("no such type \"%s\" in constructor"),
NOT_A_CLASS("\"%s\" is not a class"),

Powered by Google App Engine
This is Rietveld 408576698