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

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: Updated cf. comments. 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 5efc577f4ed512dfce610e2fe02015a0998f0cb0..5249a6e768f1605a59f42c4c22383764282bac2d 100644
--- a/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -983,10 +983,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);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698