method ref: ensure top substitutor is not overridden with raw replacement from second method ref search (IDEA-158636)

This commit is contained in:
Anna.Kozlova
2016-07-18 12:09:21 +02:00
parent e032fa974a
commit 3ee60dba1d
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
package pi;
import java.util.stream.Stream;
abstract class Foo<T> {
public abstract <X> Foo<X> getAssociatedFoo();
public abstract static class Bar<Z> {
public Stream<Foo<Object>> getAssociatedFoos(Stream<Foo<Z>> stream) {
return stream.map(Foo::getAssociatedFoo);
}
}
}