lambda: infer lambda param types in method call, return statement context

This commit is contained in:
anna
2012-07-19 18:39:37 +02:00
parent 533f276ad4
commit f90fadbd52
8 changed files with 73 additions and 83 deletions

View File

@@ -15,7 +15,7 @@ class Foo {
void bar() {
foo<error descr="Ambiguous method call: both 'Foo.foo(I)' and 'Foo.foo(K)' match">((p) -> {
System.out.println(p);
System.out.println<error descr="Cannot resolve method 'println(<lambda parameter>)'">(p)</error>;
})</error>;
foo((p, k) -> {