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:
Anna.Kozlova
2016-03-29 16:51:50 +02:00
parent 5d59c19733
commit f139c4cef4
3 changed files with 32 additions and 16 deletions
@@ -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;
}
}