mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
420 B
Java
17 lines
420 B
Java
// "Replace with <>" "true-preview"
|
|
class Test {
|
|
|
|
void test() {
|
|
class Foo<X extends Number> {
|
|
Foo() {}
|
|
Foo(X x) {}
|
|
}
|
|
Foo<Number> f1 = new Foo<Number>(1);
|
|
Foo<?> f2 = new Foo<>();
|
|
Foo<?> f3 = new Foo<Integer>();
|
|
Foo<Number> f4 = new Foo<Number>(1) {};
|
|
Foo<?> f5 = new Foo<Number>() {};
|
|
Foo<?> f6 = new Foo<Integer>() {};
|
|
}
|
|
}
|