Chromium Code Reviews| Index: lib/compiler/implementation/universe.dart |
| =================================================================== |
| --- lib/compiler/implementation/universe.dart (revision 7371) |
| +++ lib/compiler/implementation/universe.dart (working copy) |
| @@ -325,7 +325,8 @@ |
| } |
| ClassElement self = receiverType.element; |
| - if (other.implementsInterface(self)) { |
| + // TODO(ngeoffray): tree-shake on interfaces. |
| + if (self.isInterface() || other.isSubclassOf(self)) { |
| return super.applies(element, compiler); |
| } |