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

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

Issue 8527005: Better redirecting constructor and initializers problems reporting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Report problems for all nodes 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/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 91e2e23c27b0b30e054a10980a154956315124f3..6f660f115b1ca579675624f982bc4668edbb4008 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1339,9 +1339,6 @@ public class Resolver {
DartInitializer initializer = initializers.next();
Element element = resolve(initializer);
if ((ElementKind.of(element) == ElementKind.CONSTRUCTOR) && initializer.isInvocation()) {
- if (constructorElement != null) {
- onError(initializer, ResolverErrorCode.SUPER_INVOCATION_NOT_UNIQUE);
- }
constructorElement = (ConstructorElement) element;
}
}

Powered by Google App Engine
This is Rietveld 408576698