Index: tests/language/isnot_malformed_type_test.dart |
diff --git a/tests/language/isnot_malformed_type_test.dart b/tests/language/isnot_malformed_type_test.dart |
index 11abe66285748373da054cd70f80aab6b30210b3..867e9f7b9d1dae62c83692656b3d96422af62511 100644 |
--- a/tests/language/isnot_malformed_type_test.dart |
+++ b/tests/language/isnot_malformed_type_test.dart |
@@ -5,10 +5,10 @@ |
import 'package:expect/expect.dart'; |
f(obj) { |
- // 'Baz' is not loaded, mapped to dynamic. |
+ // 'Baz' is not loaded, throws a type error on test. |
return (obj is !Baz); |
} |
main () { |
- Expect.isFalse(f(null)); |
+ Expect.throws(() => f(null), (e) => e is TypeError); |
} |