mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
new inference: method refs: do not include containing class type params in inference
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
class TestJ8 {
|
||||
|
||||
interface Func<Af, Bf> {
|
||||
Bf f(Af a);
|
||||
}
|
||||
|
||||
class List<A> {
|
||||
|
||||
<Bm> List<Bm> map(Func<A, Bm> f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
<Bb> List<Bb> bind(Func<A, List<Bb>> f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
<B> List<B> apply(final List<Func<A, B>> lf) {
|
||||
return lf.bind(this::map);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user