new inference: nested varargs

(cherry picked from commit 0d293e439ffcbe97db98c1a1b8072e798d94323e)
This commit is contained in:
Anna Kozlova
2014-03-11 15:22:18 +01:00
parent 144684ba22
commit 465325a6a6
8 changed files with 79 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
class Demo {
public void f1() {
f2<error descr="'f2()' in 'Demo' cannot be applied to '(int, <lambda expression>)'">(2, input -> input)</error>;
f2(2, <error descr="Target type of a lambda conversion must be an interface">input -> input</error>);
}
public void f2() {