mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
new inference: array creation notional method; testdata
(cherry picked from commit dc1b25b74db12a5282332b5bae1d10da1aed99e8)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Test {
|
||||
void test(Helper<Integer> helper) {
|
||||
staticFactory(helper, Integer[]::new);
|
||||
}
|
||||
|
||||
<P_OUT> void staticFactory(Helper<P_OUT> helper,
|
||||
IntFunction<P_OUT[]> generator){}
|
||||
|
||||
class Helper<K> {}
|
||||
|
||||
interface IntFunction<R> {
|
||||
R apply(int value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user