mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: check provided lower bounds on type parameters, in case of fresh variables they declare the type hierarchy and otherwise constrains won't agree (IDEA-153642)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class Test<K> {
|
||||
|
||||
{
|
||||
Supplier<List<? super K>> s = Test::foo;
|
||||
}
|
||||
|
||||
static <E> List<? super E> foo() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user