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

Unified Diff: tests/language/reify_typevar_test.dart

Issue 348053002: dart2dart: Support for all constants in new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: SVN rebase + merge Created 6 years, 6 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 | « tests/language/const_map4_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/reify_typevar_test.dart
diff --git a/tests/compiler/dart2js_extra/16407_test.dart b/tests/language/reify_typevar_test.dart
similarity index 60%
copy from tests/compiler/dart2js_extra/16407_test.dart
copy to tests/language/reify_typevar_test.dart
index aff1ba337ddab1eb5d219ac635653b48d4f8d1bc..874efd681964049629144e7c794da601f50d354a 100644
--- a/tests/compiler/dart2js_extra/16407_test.dart
+++ b/tests/language/reify_typevar_test.dart
@@ -4,13 +4,13 @@
import "package:expect/expect.dart";
-// Regression test for Issue 16407.
-
-void main() {
- foo(null, true);
- foo('x', false);
+class Foo<T> {
+ reify() {
+ return T;
+ }
}
-var foo = (x, result) {
- Expect.equals(result, x is Null, '$x is Null');
-};
+main() {
+ Expect.equals(int, new Foo<int>().reify());
+ Expect.equals(Foo, new Foo().runtimeType);
+}
« no previous file with comments | « tests/language/const_map4_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698