mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] [inference] fix explicit type lambda pertinent to applicability check (IDEA-279477)
GitOrigin-RevId: f5249362b724b60a4cac5d3856f03f61743d7266
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8b9d0c44be
commit
8e5bc65c2a
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class MyTest {
|
||||
|
||||
public static <W> void m(Class<W> targetType, Supplier<InputStream> upstream) {
|
||||
Supplier<Supplier<W>> downstream = mapping(
|
||||
(InputStream is) -> () -> readValue(is, targetType));
|
||||
}
|
||||
|
||||
public static <T,U> Supplier<U> mapping(Function<? super T, ? extends U> mapper) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <W> W readValue(InputStream stream, Class<W> targetType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user