mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-24 15:31:26 +07:00
inference when incomplete
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Calls {
|
||||
<A> Optional<A> a(A a) {return null;}
|
||||
<B> B b(Optional<B> a) {return null;}
|
||||
<C> Optional<C> c(C a) {return null;}
|
||||
|
||||
void foo(Function<String, Optional> computable) {}
|
||||
|
||||
{
|
||||
((x) -> a(b(c<error descr="'c(java.lang.Object)' in 'Calls' cannot be applied to '(<lambda parameter>)'">(x)</error>)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user