Index: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
index bd6feb76734cfa900deff68afb324adc7d4cfcf2..c7bf3d35e1c8a5ddcddf3d3d5abbe906bb0311e2 100644 |
--- a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
@@ -2232,8 +2232,7 @@ class TypeInferrerVisitor extends ResolvedVisitor<ConcreteType> { |
ConcreteType visitDynamicSend(Send node) { |
ConcreteType receiverType = (node.receiver != null) |
? analyze(node.receiver) |
- : inferrer.singletonConcreteType( |
- new ClassBaseType(currentMethodOrField.getEnclosingClass())); |
+ : environment.lookupTypeOfThis(); |
SourceString name = |
canonicalizeMethodName(node.selector.asIdentifier().source); |
ArgumentsTypes argumentsTypes = analyzeArguments(node.arguments); |