mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: use incomplete substitutor when calc functional interface (IDEA-97038)
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
class Test {
|
||||
static class List<T> {
|
||||
public Stream<T> stream() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface IntFunction<T> {
|
||||
public int applyAsInt(T t);
|
||||
}
|
||||
|
||||
static class Stream<E> {
|
||||
public Stream map(IntFunction<? super E> mapper) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(List<AtomicInteger> list) {
|
||||
list.stream().map(atomic -> atomic.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user