mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
17 lines
228 B
Java
17 lines
228 B
Java
// "Replace with <>" "true-preview"
|
|
interface I<T> {
|
|
I<T> then(T t);
|
|
}
|
|
class J<T extends String> {}
|
|
class MyTest {
|
|
|
|
<K> I<K> when(K p) { return null;}
|
|
|
|
|
|
|
|
void m(J<?> l){
|
|
|
|
when(l).then((J) new J<>());
|
|
}
|
|
|
|
} |