mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
diamonds; actual types accepted in java 7 even if no formal types were defined!
(cherry picked from commit 903984b162008a56def605c72743c22517304a2d)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Pos9<X> {
|
||||
|
||||
Pos9(X x) {}
|
||||
|
||||
|
||||
Pos9<X> test(X x) {
|
||||
return new Pos9<>(x);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user