mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: choose more specific by return type fix (IDEA-99969); check cyclic inference when not on raw
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
public interface IDEA99969 {
|
||||
default IntStream distinct(Stream s) {
|
||||
return s.map(i -> (int) i);
|
||||
}
|
||||
}
|
||||
interface Stream<T> {
|
||||
<R> Stream<R> map(Function<? super T, ? extends R> mapper);
|
||||
IntStream map(IntFunction<? super T> mapper);
|
||||
LongStream map(LongFunction<? super T> mapper);
|
||||
}
|
||||
|
||||
interface Function<T, R> {
|
||||
public R apply(T t);
|
||||
}
|
||||
|
||||
interface IntFunction<T> {
|
||||
public int applyAsInt(T t);
|
||||
}
|
||||
|
||||
interface LongFunction<T> {
|
||||
public long applyAsLong(T t);
|
||||
}
|
||||
|
||||
|
||||
interface IntStream {}
|
||||
interface LongStream {}
|
||||
Reference in New Issue
Block a user