mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: strict subtyping: skip raw types
This commit is contained in:
+15
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user