abstract class PertinentToApplicabilityOfExplicitlyTypedLambdaTest { | |
interface A { | |
B m(int a); | |
} | |
interface B { | |
int m(int b); | |
} | |
abstract void foo(A a); | |
abstract void foo(B b); | |
{ | |
foo<error descr="Ambiguous method call: both 'PertinentToApplicabilityOfExplicitlyTypedLambdaTest.foo(A)' and 'PertinentToApplicabilityOfExplicitlyTypedLambdaTest.foo(B)' match">(x -> y -> 42)</error>; | |
} | |
} |