mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: do not override already inferred types from parent (IDEA-92733)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class LambdaTest {
|
||||
|
||||
public void highlightsTheBug(Stream<String> stream) {
|
||||
stream.flatMap((Block<? super String> sink, String element) -> {});
|
||||
}
|
||||
|
||||
public interface Block<B> {
|
||||
void apply(B t);
|
||||
}
|
||||
|
||||
public interface Stream<S> {
|
||||
<R> Stream<R> flatMap(FlatMapper<? super S, R> mapper);
|
||||
|
||||
}
|
||||
|
||||
public interface FlatMapper<F, R> {
|
||||
void flatMapInto(Block<? super R> sink, F element);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user