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

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

Issue 14268020: Fix issue 10216. If the type mask is a subtype, and its base mixes in class A, it should consider a… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/world.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/world.dart (revision 22106)
+++ sdk/lib/_internal/compiler/implementation/world.dart (working copy)
@@ -136,6 +136,14 @@
: false;
}
+ // Returns whether a superclass of [cls] mixes in [other].
kasperl 2013/04/29 10:27:21 Get rid of this helper again?
ngeoffray 2013/04/29 10:37:48 Done.
+ bool hasAnySuperclassThatMixes(ClassElement cls, ClassElement other) {
+ Set<MixinApplicationElement> uses = mixinUses[other];
+ return (uses != null)
+ ? uses.any((each) => cls.isSubclassOf(each))
+ : false;
+ }
+
void registerUsedElement(Element element) {
if (element.isInstanceMember() && !element.isAbstract(compiler)) {
allFunctions.add(element);

Powered by Google App Engine
This is Rietveld 408576698