diamonds; actual types accepted in java 7 even if no formal types were defined!

(cherry picked from commit 903984b162008a56def605c72743c22517304a2d)
This commit is contained in:
anna
2011-05-02 21:14:20 +02:00
parent 430f611e7d
commit 3bb0c9d03a
8 changed files with 124 additions and 18 deletions
@@ -0,0 +1,10 @@
class Pos9<X> {
Pos9(X x) {}
Pos9<X> test(X x) {
return new Pos9<>(x);
}
}