mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
10 lines
362 B
Java
10 lines
362 B
Java
class Neg14 {
|
|
|
|
static class Foo<X> {
|
|
<T extends Integer> Foo(T t) {}
|
|
}
|
|
|
|
Foo<Integer> fi1 = new <String> Foo<<error descr="Cannot use diamonds with explicit type parameters for constructor"></error>>(1);
|
|
Foo<Integer> fi2 = new <<error descr="Actual type argument and inferred type contradict each other">String</error>> Foo<Integer>(1);
|
|
}
|