Index: tests/compiler/dart2js/trust_type_annotations_test.dart |
diff --git a/tests/compiler/dart2js/trust_type_annotations_test.dart b/tests/compiler/dart2js/trust_type_annotations_test.dart |
index b7933436262efd08d7fc614e5d075e647b429f67..f7a390aaf76bbf44234432dec62c70ff3c8f955e 100644 |
--- a/tests/compiler/dart2js/trust_type_annotations_test.dart |
+++ b/tests/compiler/dart2js/trust_type_annotations_test.dart |
@@ -58,8 +58,7 @@ void main() { |
checkReturn(String name, TypeMask type) { |
var element = classA.lookupMember(name); |
var mask = typesInferrer.getReturnTypeOfElement(element); |
- Expect.isTrue(type.containsMask( |
- typesInferrer.getReturnTypeOfElement(element), closedWorld)); |
+ Expect.isTrue(type.containsMask(mask, closedWorld)); |
} |
checkType(String name, type) { |