mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
method ref: ensure top substitutor is not overridden with raw replacement from second method ref search (IDEA-158636)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user