mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
diamonds: cannot use diamonds with explicit constructor types/disable checks on type args for non generics constructors (sic!?)
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
public class Pos04<U> {
|
||||
public class Pos4<U> {
|
||||
|
||||
void test() {
|
||||
class Foo<V> {
|
||||
@@ -17,7 +17,7 @@ public class Pos04<U> {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Pos04<String> p4 = new Pos04<>();
|
||||
Pos4<String> p4 = new Pos4<>();
|
||||
p4.test();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user