| Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| index 3b0127af347c40a4a9a650b0b8ab1f23cce9b190..c829cfd74655a11fe37caefce20ccfdd4d189631 100644
|
| --- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
|
| @@ -344,7 +344,7 @@ abstract class ElementTypeInformation extends TypeInformation {
|
| bool disableInferenceForClosures = true;
|
|
|
| factory ElementTypeInformation(Element element, TypeInformationSystem types) {
|
| - if (element.isParameter || element.isInitializingFormal) {
|
| + if (element.isRegularParameter || element.isInitializingFormal) {
|
| ParameterElement parameter = element;
|
| if (parameter.functionDeclaration.isInstanceMember) {
|
| return new ParameterTypeInformation._instanceMember(element, types);
|
| @@ -601,7 +601,7 @@ class ParameterTypeInformation extends ElementTypeInformation {
|
| bool isTearOffClosureParameter = false;
|
|
|
| void tagAsTearOffClosureParameter(TypeGraphInferrerEngine inferrer) {
|
| - assert(element.isParameter);
|
| + assert(element.isRegularParameter);
|
| isTearOffClosureParameter = true;
|
| // We have to add a flow-edge for the default value (if it exists), as we
|
| // might not see all call-sites and thus miss the use of it.
|
|
|