lambda: check return compatibility according to expected lambda type; test fixed

This commit is contained in:
Anna Kozlova
2012-09-12 12:58:28 +04:00
parent 4671577a1a
commit 94dd1967d1
2 changed files with 23 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ class ReturnTypeCompatibility {
}
public static void main(String[] args) {
call(<error descr="Cyclic inference">i-> {return i;}</error>);
<error descr="Cannot resolve method 'call(<lambda expression>)'">call</error>(i-> {return i;});
}
}