| Index: pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
|
| index 3b7884e8e44a0906f937ba1d3171ecfe0117bb4b..eee07aa45da2114cbb35395cd3c1a2742e96c1fd 100644
|
| --- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
|
| @@ -858,7 +858,8 @@ class TypeGraphInferrerEngine
|
| if (value != null) {
|
| if (value.isFunction) {
|
| FunctionConstantValue functionConstant = value;
|
| - type = types.allocateClosure(node, functionConstant.element);
|
| + MethodElement function = functionConstant.element;
|
| + type = types.allocateClosure(node, function);
|
| } else {
|
| // Although we might find a better type, we have to keep
|
| // the old type around to ensure that we get a complete view
|
|
|