Chromium Code Reviews| Index: lib/compiler/implementation/universe.dart |
| =================================================================== |
| --- lib/compiler/implementation/universe.dart (revision 11507) |
| +++ 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)) { |
|
kasperl
2012/08/29 11:57:36
So this is essentially a subtype (not subclass) ch
ngeoffray
2012/08/29 12:13:50
It does. I added another test to make sure we don'
|
| return appliesUntyped(element, compiler); |
| } |