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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10533050: Makes method shadowing a getter or setter or vice versa a compile time error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # Created 8 years, 6 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: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 2b86fbc0ef09086f6ab918784b2e1416f89a5840..4ec32da371a46757528fd9d4f5241e23b9b852a0 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -2416,7 +2416,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
checkOverride(node.getName(), field, element);
break;
case METHOD:
- typeError(node, TypeErrorCode.SUPERTYPE_HAS_METHOD, name,
+ typeError(node.getName(), TypeErrorCode.SUPERTYPE_HAS_METHOD, name,
element.getEnclosingElement().getName());
break;
@@ -2444,7 +2444,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
break;
case FIELD:
- typeError(node, TypeErrorCode.SUPERTYPE_HAS_FIELD, element.getName(),
+ typeError(node.getName(), TypeErrorCode.SUPERTYPE_HAS_FIELD, element.getName(),
element.getEnclosingElement().getName());
break;

Powered by Google App Engine
This is Rietveld 408576698