mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-15 05:17:50 +07:00
redundant type arguments: recapture captured wildcards for original elements (IDEA-242856)
GitOrigin-RevId: 6f2da6bbdbc50708571177d6ff5f279a4fee8eb1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e2f1377a65
commit
70232ecaa1
+17
@@ -0,0 +1,17 @@
|
||||
// "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<>());
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "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<Str<caret>ing>());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user