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 5a70e55c1acad9ba35003d20772d1667a34aa0f6..9298d5120654ef551e9c6d6d3d02b3e615d96f36 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -477,23 +477,24 @@ class MemberTypeInformation extends ElementTypeInformation |
// goes in the work queue. |
giveUp(inferrer); |
if (element.isField) { |
+ FieldElement field = element; |
return inferrer |
.typeOfNativeBehavior( |
- inferrer.backend.nativeData.getNativeFieldLoadBehavior(element)) |
+ inferrer.backend.nativeData.getNativeFieldLoadBehavior(field)) |
.type; |
} else { |
assert(element.isFunction || |
element.isGetter || |
element.isSetter || |
element.isConstructor); |
- TypedElement typedElement = element; |
- var elementType = typedElement.type; |
+ MethodElement methodElement = element; |
+ var elementType = methodElement.type; |
if (elementType.kind != ResolutionTypeKind.FUNCTION) { |
return safeType(inferrer); |
} else { |
return inferrer |
- .typeOfNativeBehavior( |
- inferrer.backend.nativeData.getNativeMethodBehavior(element)) |
+ .typeOfNativeBehavior(inferrer.backend.nativeData |
+ .getNativeMethodBehavior(methodElement)) |
.type; |
} |
} |