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

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

Issue 9303033: Two different classes may have the same *name*. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: null.toString() is also broken Created 8 years, 11 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: dart/compiler/java/com/google/dart/compiler/resolver/Resolver.java
diff --git a/dart/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/dart/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index 5489a6bb152442de3661a4abc23be89bd23a1362..b130ff42a7b401c4791bf108f6d0c407f16eb952 100644
--- a/dart/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/dart/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1871,7 +1871,7 @@ public class Resolver {
ConstructorElement nextConstructorElement = (ConstructorElement) element;
ClassElement nextClass = (ClassElement) nextConstructorElement.getEnclosingElement();
ClassElement currentClass = (ClassElement) constructor.getEnclosingElement();
- if (nextClass.getName().equals(currentClass.getName())) {
+ if (nextClass == currentClass) {
return nextConstructorElement;
}
}

Powered by Google App Engine
This is Rietveld 408576698