Index: test/codegen/corelib/print_test.dart |
diff --git a/test/codegen/language/malbounded_type_literal_test.dart b/test/codegen/corelib/print_test.dart |
similarity index 60% |
copy from test/codegen/language/malbounded_type_literal_test.dart |
copy to test/codegen/corelib/print_test.dart |
index ca64d7efa8b66168b1bb82207f864ee87d467797..7139d75e2f7c498b6317a3c6df52158a186dbdbd 100644 |
--- a/test/codegen/language/malbounded_type_literal_test.dart |
+++ b/test/codegen/corelib/print_test.dart |
@@ -4,11 +4,18 @@ |
import 'package:expect/expect.dart'; |
-class Super<T extends num> {} |
-class Malbounded extends Super<String> {} |
+class A { |
+ toString() { |
+ if (false |
+ || true /// 01: runtime error |
+ ) { |
+ return 499; |
+ } else { |
+ return "ok"; |
+ } |
+ } |
+} |
main() { |
- Type t = Malbounded; |
- Expect.isNotNull(t); |
- Expect.isTrue(t is Type); |
+ print(new A()); |
} |