| Index: sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
|
| index e467e2984634f373eabdd2cc2cefc7703024c74e..1909dfb89c8f8af32fd94e7d1b2f38337929dd73 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/inferrer/concrete_types_inferrer.dart
|
| @@ -1371,7 +1371,7 @@ class ConcreteTypesInferrer
|
| /**
|
| * Add [reader] to the set of [local]'s readers.
|
| */
|
| - void addCapturedLocalReader(VariableElement local, FunctionElement reader) {
|
| + void addCapturedLocalReader(Local local, FunctionElement reader) {
|
| capturedLocalsReaders.putIfAbsent(local, () => new Set<FunctionElement>())
|
| .add(reader);
|
| }
|
| @@ -2266,7 +2266,7 @@ class ConcreteTypesInferrer
|
| final result = currentWorkItem.environment.lookupType(element);
|
| if (result != null) return result;
|
| }
|
| - if (element.isParameter || element.isFieldParameter) {
|
| + if (element.isParameter || element.isInitializingFormal) {
|
| return inferredParameterTypes[element];
|
| } else if (element.isField) {
|
| return inferredFieldTypes[element];
|
|
|