Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: tests/language/malbounded_type_literal_test.dart

Issue 26761002: Add test for using a type literal for a malbounded type. Crashes the VM in debug mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/language/language.status ('K') | « tests/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/malbounded_type_literal_test.dart
diff --git a/tests/compiler/dart2js_native/only_pass_on_jsshell_test.dart b/tests/language/malbounded_type_literal_test.dart
similarity index 64%
copy from tests/compiler/dart2js_native/only_pass_on_jsshell_test.dart
copy to tests/language/malbounded_type_literal_test.dart
index 17fce76f02882c3c64161398f14eb702299393ef..ca64d7efa8b66168b1bb82207f864ee87d467797 100644
--- a/tests/compiler/dart2js_native/only_pass_on_jsshell_test.dart
+++ b/tests/language/malbounded_type_literal_test.dart
@@ -4,9 +4,11 @@
import 'package:expect/expect.dart';
-import 'dart:_js_helper' show Primitives;
+class Super<T extends num> {}
+class Malbounded extends Super<String> {}
main() {
- Expect.isFalse(Primitives.isD8);
- Expect.isTrue(Primitives.isJsshell);
+ Type t = Malbounded;
+ Expect.isNotNull(t);
+ Expect.isTrue(t is Type);
}
« tests/language/language.status ('K') | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698