new inference: strict subtyping: skip raw types

This commit is contained in:
Anna Kozlova
2014-02-24 18:59:41 +01:00
parent 828cb5a1a2
commit 232f8bd465
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,15 @@
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Supplier;
class Test {
interface I<K> {}
{
I i = foo(TreeMap::new);
}
<M extends Map<Integer, Integer>> I<M> foo(Supplier<M> mapFactory) {
return null;
}
}