| Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (revision 19354)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (working copy)
|
| @@ -324,7 +324,10 @@
|
| && selector.isCall()) {
|
| DartType type = interceptor.instructionType.computeType(compiler);
|
| ClassElement cls = type.element;
|
| - node.element = cls.lookupSelector(selector);
|
| + Element target = cls.lookupSelector(selector);
|
| + if (selector.applies(target, compiler)) {
|
| + node.element = target;
|
| + }
|
| }
|
| return node;
|
| }
|
|
|