mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
new inference: captures should stay closed inside nested calls
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class Test {
|
||||
|
||||
class Foo<K> {}
|
||||
|
||||
void test(Foo<? extends String> p) {
|
||||
foo(bar(p)) ;
|
||||
}
|
||||
|
||||
<T> T bar(Foo<T> p) {
|
||||
return null;
|
||||
}
|
||||
|
||||
<K> K foo(K p) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user