| Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| index a192edc9b2e9f25e56478fb759ecbf22df34ba54..4d099016877866c16075ff44b462ac30f2380b8a 100644
|
| --- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| @@ -850,12 +850,9 @@ class SimpleTypeInferrerVisitor<T>
|
| isCallOnThis = true;
|
| }
|
| } else {
|
| - if (node.receiver != null) {
|
| - Element receiver = elements[node.receiver];
|
| - if (receiver is! PrefixElement && receiver is! ClassElement) {
|
| - // TODO(johnniwinther): Avoid blindly recursing on the receiver.
|
| - receiverType = visit(node.receiver);
|
| - }
|
| + if (node.receiver != null && elements[node.receiver] is! PrefixElement) {
|
| + // TODO(johnniwinther): Avoid blindly recursing on the receiver.
|
| + receiverType = visit(node.receiver);
|
| }
|
| isCallOnThis = isThisOrSuper(node.receiver);
|
| }
|
|
|