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

Unified Diff: tests/language/generic_creation_test.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 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
« no previous file with comments | « tests/html/selectelement_test.dart ('k') | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generic_creation_test.dart
diff --git a/tests/language/generic_creation_test.dart b/tests/language/generic_creation_test.dart
index 8aa6d29f61ab139430f1c196e2225aec55d5945b..ad71e2c20f41a225093579d95baf5388f1d7133b 100644
--- a/tests/language/generic_creation_test.dart
+++ b/tests/language/generic_creation_test.dart
@@ -5,8 +5,8 @@
class A<X, Y, Z> {
shift() => new A<Z, X, Y>();
swap() => new A<Z, Y, X>();
- first() => new A<X, X, X>();
- last() => new A<Z, Z, Z>();
+ get first => new A<X, X, X>();
+ get last => new A<Z, Z, Z>();
wrap() => new A<A<X, X, X>, A<Y, Y, Y>, A<Z, Z, Z>>();
}
@@ -20,7 +20,7 @@ main() {
A a = new A<U, V, W>();
sameType(new A<W, U, V>(), a.shift());
sameType(new A<W, V, U>(), a.swap());
- sameType(new A<U, U, U>(), a.first());
- sameType(new A<W, W, W>(), a.last());
+ 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());
}
« no previous file with comments | « tests/html/selectelement_test.dart ('k') | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698