mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline: use wildcard bound to avoid ? in top level type element (IDEA-144883)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
interface Pair<A extends String> {
|
||||
A get();
|
||||
}
|
||||
|
||||
class B {
|
||||
<V extends String> void f(Pair<V> p) {
|
||||
V v = p.get();
|
||||
}
|
||||
|
||||
{
|
||||
Pair<?> p = null;
|
||||
<caret>f(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
interface Pair<A extends String> {
|
||||
A get();
|
||||
}
|
||||
|
||||
class B {
|
||||
|
||||
{
|
||||
Pair<?> p = null;
|
||||
String v = p.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user