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

Unified Diff: test/codegen/corelib/print_test.dart

Issue 1945153002: Add corelib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: error_test and range_error_test now pass Created 4 years, 7 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
« no previous file with comments | « test/codegen/corelib/package_resource_test.dart ('k') | test/codegen/corelib/queue_first_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « test/codegen/corelib/package_resource_test.dart ('k') | test/codegen/corelib/queue_first_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698