mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
17 lines
240 B
Java
17 lines
240 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<Str<caret>ing>());
|
|
}
|
|
|
|
} |