Index: tests/compiler/dart2js/type_inference_switch_test.dart |
diff --git a/tests/compiler/dart2js/type_inference_switch_test.dart b/tests/compiler/dart2js/type_inference_switch_test.dart |
index f28444bd21e2737f7328269ff5be35779222d5a5..56e468ed7e076ac8bfe4a555f22310e6eb9f9843 100644 |
--- a/tests/compiler/dart2js/type_inference_switch_test.dart |
+++ b/tests/compiler/dart2js/type_inference_switch_test.dart |
@@ -140,7 +140,7 @@ Future runTest(String test, checker) { |
checkTypeOf(String name, TypeMask type) { |
var element = findElement(compiler, name); |
- var mask = typesInferrer.getReturnTypeOfElement(element); |
+ var mask = typesInferrer.getReturnTypeOfMember(element); |
Expect.equals(type, simplify(mask, closedWorld)); |
} |