Files
Tagir Valeev dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00

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>());
}
}