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
@@ -4,6 +4,6 @@ class Neg13 {
<T> Foo(T t) {}
}
Foo<Integer> fi1 = new <error descr="Wrong number of type arguments: 2; required: 1"><String, Integer></error> Foo<>("");
Foo<Integer> fi1 = new <String, Integer> Foo<<error descr="Cannot use diamonds with explicit type parameters for constructor"></error>>("");
Foo<Integer> fi2 = new <error descr="Wrong number of type arguments: 2; required: 1"><String, Integer></error> Foo<Integer>("");
}