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

Unified Diff: sdk/lib/_internal/compiler/implementation/typechecker.dart

Issue 18670003: Remove support for conflicting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/typechecker.dart
diff --git a/sdk/lib/_internal/compiler/implementation/typechecker.dart b/sdk/lib/_internal/compiler/implementation/typechecker.dart
index fa0dadaebd0ce9f899750656ccc3eecb6e14820d..9e5794f2c7c81074a986ad199166526002e7e5e4 100644
--- a/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -974,10 +974,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
Element element = elements[node.send];
if (Elements.isUnresolved(element)) return types.dynamicType;
- ClassElement enclosingClass = element.getEnclosingClass();
- SourceString name = Elements.deconstructConstructorName(
- element.name, enclosingClass);
- checkPrivateAccess(node, element, name);
+ checkPrivateAccess(node, element, element.name);
DartType newType = elements.getType(node);
DartType constructorType = computeConstructorType(element, newType);

Powered by Google App Engine
This is Rietveld 408576698