isApplicability check based on pertinentToApplicability

This commit is contained in:
Anna Kozlova
2015-11-30 15:02:29 +01:00
parent d84e18ec58
commit 621795bbee
24 changed files with 47 additions and 33 deletions

View File

@@ -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

View File

@@ -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);
}
}