diamonds: cannot use diamonds with explicit constructor types/disable checks on type args for non generics constructors (sic!?)

This commit is contained in:
anna
2011-05-17 21:00:44 +04:00
parent 1ccbc4e984
commit 097a350597
11 changed files with 39 additions and 49 deletions
@@ -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();
}
}