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

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

Issue 11569021: Issue 7373. Fix for marking abstract methods as overriding themselves. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f2e102ee58ad4d3f551000a68190be3ef89cc10..fbeb242972265811a85b15711ee41f74dca8848d 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -3163,7 +3163,6 @@ public class TypeAnalyzer implements DartCompilationPhase {
// cull out duplicate elements in the supertype list - inheriting more than one interface
// of the same type is valid.
Set<ClassElement> typesForAbstractMembers = Sets.newHashSet();
- typesForAbstractMembers.add(currentClass.getElement());
for (InterfaceType supertype : supertypes) {
typesForAbstractMembers.add(supertype.getElement());
}
@@ -3350,7 +3349,6 @@ public class TypeAnalyzer implements DartCompilationPhase {
case FIELD:
typeError(node.getName(), TypeErrorCode.SUPERTYPE_HAS_FIELD, superElement.getName(),
superElement.getEnclosingElement().getName());
-
break;
default:
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698