mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
inference: don't erase inference variables (IDEA-151750)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
interface E {}
|
||||
interface F extends E {
|
||||
ArrayFactory<F> ARRAY_FACTORY = null;
|
||||
}
|
||||
|
||||
interface ArrayFactory<T> {
|
||||
T[] create(int count);
|
||||
}
|
||||
|
||||
interface Stub<K> {}
|
||||
|
||||
class M {
|
||||
|
||||
public F[] get(Stub s) {
|
||||
return foo(s, F.ARRAY_FACTORY);
|
||||
}
|
||||
|
||||
private <T extends E> T[] foo(Stub<T> stub, ArrayFactory<T> arrayFactory) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user