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

Unified Diff: tests/language/generic_creation_test.dart

Issue 12210138: Add substitution for classes that use type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deleted newline again. Created 7 years, 10 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
Index: tests/language/generic_creation_test.dart
diff --git a/tests/language/generic_creation_test.dart b/tests/language/generic_creation_test.dart
index 55dbd2680d305cda659631e989764aa5244eb829..a14ddbcb7e1ac4be8fc7f8a8ddcf07108c96dad3 100644
--- a/tests/language/generic_creation_test.dart
+++ b/tests/language/generic_creation_test.dart
@@ -10,6 +10,8 @@ class A<X, Y, Z> {
wrap() => new A<A<X, X, X>, A<Y, Y, Y>, A<Z, Z, Z>>();
}
+class B extends A<U, V, W> {}
kasperl 2013/02/12 12:14:10 Could you also test that something like: class
karlklose 2013/02/12 13:22:30 Done.
+
class U {}
class V {}
class W {}
@@ -23,4 +25,6 @@ main() {
sameType(new A<U, U, U>(), a.first());
sameType(new A<W, W, W>(), a.last());
sameType(new A<A<U, U, U>, A<V, V, V>, A<W, W, W>>(), a.wrap());
+ B b = new B();
+ sameType(new A<A<U, U, U>, A<V, V, V>, A<W, W, W>>(), b.wrap());
}

Powered by Google App Engine
This is Rietveld 408576698