mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
ensure denotable types
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Create method 'foo'" "true"
|
||||
class A {
|
||||
private List<? extends CharSequence> sequences = null;
|
||||
|
||||
{
|
||||
foo(sequences.map());
|
||||
}
|
||||
|
||||
private void foo(List<?> map) {
|
||||
|
||||
}
|
||||
|
||||
interface List<T> {
|
||||
List<? super T> map();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Create method 'foo'" "true"
|
||||
class A {
|
||||
private List<? extends CharSequence> sequences = null;
|
||||
|
||||
{
|
||||
f<caret>oo(sequences.map());
|
||||
}
|
||||
|
||||
interface List<T> {
|
||||
List<? super T> map();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user