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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java

Issue 12052084: Issue 8027. Disallow cyclic mixins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/resolver/SupertypeResolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
index 6f137671438ad12785189f8fb8776de36347db8e..ed9505e4f11232bb344f78af9285cf8d5e468f4d 100644
--- a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
@@ -177,10 +177,6 @@ public class SupertypeResolver {
topLevelContext.onError(mixNode, ResolverErrorCode.SUPER_CLASS_IN_WITH);
continue;
}
- if (!Objects.equal(mixType.getElement().getSupertype(), typeProvider.getObjectType())) {
- topLevelContext.onError(mixNode, ResolverErrorCode.ONLY_OBJECT_MIXIN_SUPERCLASS);
- continue;
- }
seenMixin.add(mixType);
// OK, add
Elements.addMixin(classElement, mixType);

Powered by Google App Engine
This is Rietveld 408576698