Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/explicit2diamond/afterRecaptured.java
Anna Kozlova 70232ecaa1 redundant type arguments: recapture captured wildcards for original elements (IDEA-242856)
GitOrigin-RevId: 6f2da6bbdbc50708571177d6ff5f279a4fee8eb1
2020-06-08 13:45:45 +03:00

17 lines
220 B
Java

// "Replace with <>" "true"
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<>());
}
}