mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
java 8: accept diamonds in method calls
(cherry picked from commit 08397e08d34121af89e37901453ea786b3c8612e)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class A<T> {
|
||||
A(T... t) {
|
||||
}
|
||||
|
||||
{
|
||||
bar(new A<>(<caret>) );
|
||||
}
|
||||
|
||||
<T> void bar(A<T> s) {}
|
||||
|
||||
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class A<T> {
|
||||
A(T... t) {
|
||||
}
|
||||
|
||||
{
|
||||
bar(new <caret> );
|
||||
}
|
||||
|
||||
<T> void bar(A<T> s) {}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user