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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10900023: A class can implement another class, so a selector on a class applies to a member that implements t… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/universe.dart
===================================================================
--- lib/compiler/implementation/universe.dart (revision 11511)
+++ lib/compiler/implementation/universe.dart (working copy)
@@ -375,8 +375,7 @@
}
ClassElement self = receiverType.element;
- // TODO(ngeoffray): tree-shake on interfaces.
- if (self.isInterface() || other.isSubclassOf(self)) {
+ if (other.implementsInterface(self) || other.isSubclassOf(self)) {
return appliesUntyped(element, compiler);
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698