Index: tests/compiler/dart2js/inference/inference_test_helper.dart |
diff --git a/tests/compiler/dart2js/inference/inference_test_helper.dart b/tests/compiler/dart2js/inference/inference_test_helper.dart |
index 4b6636e7249c2c2c2ddb0fb38746d83748ba5d91..0e766f681854e5269bb765a9322502bde758cf67 100644 |
--- a/tests/compiler/dart2js/inference/inference_test_helper.dart |
+++ b/tests/compiler/dart2js/inference/inference_test_helper.dart |
@@ -107,7 +107,7 @@ class TypeMaskChecker extends Visitor with AstEnumeratorMixin { |
TypeMaskChecker( |
this.reporter, this.expectedMap, this.resolvedAst, this.results) |
- : result = results.resultOf(resolvedAst.element); |
+ : result = results.resultOfMember(resolvedAst.element as MemberElement); |
TreeElements get elements => resolvedAst.elements; |
@@ -121,7 +121,8 @@ class TypeMaskChecker extends Visitor with AstEnumeratorMixin { |
void checkElement(AstElement element) { |
ElementId id = computeElementId(element); |
- GlobalTypeInferenceElementResult elementResult = results.resultOf(element); |
+ GlobalTypeInferenceElementResult elementResult = |
+ results.resultOfElement(element); |
TypeMask value = |
element.isFunction ? elementResult.returnType : elementResult.type; |
String expected = annotationForId(id); |