Index: tests/language/return_type_test.dart |
diff --git a/tests/language/return_type_test.dart b/tests/language/return_type_test.dart |
index a2137bb0ca402efab9181559f62d2daffbf26d2b..1346e415cea5940c172d06b140385c24cd72d709 100644 |
--- a/tests/language/return_type_test.dart |
+++ b/tests/language/return_type_test.dart |
@@ -21,7 +21,7 @@ void returnString2() => 's'; |
main() { |
if (isCheckedMode()) { |
Expect.throws(returnString1, (e) => e is TypeError); |
- Expect.throws(returnString2, (e) => e is TypeError); |
+ returnString2(); |
returnNull(); |
} else { |
returnString1(); |