| Index: pkg/compiler/lib/src/world.dart
|
| diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
|
| index 0a0a2f3a491fa6f5d4f866848e9f212768725505..c5f2755adc74489e3980835fa536e1e8a5b03fb7 100644
|
| --- a/pkg/compiler/lib/src/world.dart
|
| +++ b/pkg/compiler/lib/src/world.dart
|
| @@ -930,13 +930,12 @@ class ClosedWorldImpl implements ClosedWorld, ClosedWorldRefiner {
|
| : result.implementation == element.implementation;
|
| }
|
|
|
| - Element findMatchIn(ClassElement cls, Selector selector,
|
| + MemberElement findMatchIn(ClassElement cls, Selector selector,
|
| {ClassElement stopAtSuperclass}) {
|
| // Use the [:implementation] of [cls] in case the found [element]
|
| // is in the patch class.
|
| - var result = cls.implementation
|
| + return cls.implementation
|
| .lookupByName(selector.memberName, stopAt: stopAtSuperclass);
|
| - return result;
|
| }
|
|
|
| /// Returns whether a [selector] call on an instance of [cls]
|
| @@ -945,7 +944,7 @@ class ClosedWorldImpl implements ClosedWorld, ClosedWorldRefiner {
|
| {ClassElement stopAtSuperclass}) {
|
| assert(invariant(cls, isInstantiated(cls),
|
| message: '$cls has not been instantiated.'));
|
| - Element element = findMatchIn(cls, selector);
|
| + MemberElement element = findMatchIn(cls, selector);
|
| if (element == null) return false;
|
|
|
| if (element.isAbstract) {
|
|
|