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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 11140018: Ensure that ClassElement.lookupConstructor fails when looking up default constructor using Selector… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleaned up status file changes. Created 8 years, 2 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
« no previous file with comments | « no previous file | lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 8eb26d8a00f392d4332016bb66bbed4bbe3d6143..dfa13a9e9edd0d090049237b485e60755af5642a 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -1482,9 +1482,7 @@ abstract class ClassElement extends ScopeContainerElement
SourceString normalizedName;
SourceString className = this.name;
SourceString constructorName = selector.name;
- if (!identical(constructorName, const SourceString('')) &&
ahe 2012/10/26 04:39:10 Actually, I think this should be ==, not identical
aam-me 2012/10/26 10:59:55 Done.
- ((className == null) ||
- (constructorName.slowToString() != className.slowToString()))) {
+ if (!identical(constructorName, const SourceString(''))) {
normalizedName = Elements.constructConstructorName(className,
constructorName);
} else {
« no previous file with comments | « no previous file | lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698