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()); |
} |