mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
isApplicability check based on pertinentToApplicability
This commit is contained in:
@@ -11,7 +11,7 @@ class Test {
|
||||
}
|
||||
|
||||
void test(boolean cond) {
|
||||
<error descr="Cannot resolve method 'm(<lambda expression>)'">m</error>(() -> {
|
||||
<error descr="Ambiguous method call: both 'Test.m(GetInt)' and 'Test.m(GetInteger)' match">m</error>(() -> {
|
||||
if (cond)
|
||||
return 42;
|
||||
else
|
||||
|
||||
@@ -12,6 +12,6 @@ abstract class PertinentToApplicabilityOfExplicitlyTypedLambdaTest {
|
||||
abstract void foo(B b);
|
||||
|
||||
{
|
||||
<error descr="Cannot resolve method 'foo(<lambda expression>)'">foo</error>(x -> y -> 42);
|
||||
<error descr="Ambiguous method call: both 'PertinentToApplicabilityOfExplicitlyTypedLambdaTest.foo(A)' and 'PertinentToApplicabilityOfExplicitlyTypedLambdaTest.foo(B)' match">foo</error>(x -> y -> 42);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user