overload resolution: reject java 8 varargs methods when they are checked by fixed arity and number of parameters doesn't match

This commit is contained in:
Anna Kozlova
2015-04-24 20:05:30 +02:00
parent 6be67cfec0
commit 553ad77e46
4 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
class Demo {
public void f1() {
f2<error descr="Cannot resolve method 'f2(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() {