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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Resolver.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/Resolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index 2ee7d8fe558bc95bdd0d5378e9fed653333c512d..5b26cab03bcb458f0332be832d2d66a7b37af600 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1430,7 +1430,7 @@ public class Resolver {
public Element visitTypeNode(DartTypeNode type) {
return recordType(type, resolveType(type, inStaticContext(currentMethod),
inFactoryContext(currentMethod),
- ResolverErrorCode.NO_SUCH_TYPE,
+ TypeErrorCode.NO_SUCH_TYPE,
ResolverErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS));
}

Powered by Google App Engine
This is Rietveld 408576698