mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: ignore trivial dependencies
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
class ExplicitLambdaNoParams {
|
||||
interface I<T> {
|
||||
T a();
|
||||
}
|
||||
|
||||
<F> I<F> foo(I<F> iff) { return null;}
|
||||
|
||||
{
|
||||
foo(() -> foo(() -> 1)).a();
|
||||
I<Integer> a1 = foo(() -> foo(() -> 1)).a();
|
||||
}
|
||||
}
|
||||
|
||||
class LambdaWithFormalParameterTypes {
|
||||
|
||||
interface I<T> {
|
||||
T a(int p);
|
||||
}
|
||||
|
||||
<F> I<F> foo(I<F> iff) { return null;}
|
||||
|
||||
{
|
||||
foo((int a) -> foo((int b) -> 1)).a(0);
|
||||
I<Integer> a1 = foo((int a) -> foo((int b) -> 1)).a(0);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user