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

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

Issue 10829288: Issue 3800. Calling an undefined constructor via new is a warning, not an error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/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 b3b597d1648081f0dc13b171bfe2c19e60dbc891..dc4ce2bfdf26f6d7e6eb358badc04d374adf63c0 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -156,7 +156,8 @@ public enum ResolverErrorCode implements ErrorCode {
METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"),
NAMED_PARAMETERS_CANNOT_START_WITH_UNDER("Named parameters cannot start with an '_' character"),
NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),
- NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),
+ NEW_EXPRESSION_NOT_CONSTRUCTOR(
+ ErrorSeverity.WARNING, "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