new inference: method refs: do not include containing class type params in inference

This commit is contained in:
Anna Kozlova
2014-02-19 19:28:39 +01:00
parent bac3191c7a
commit b11d66e0f1
3 changed files with 31 additions and 1 deletions

View File

@@ -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);
}
}
}