method references on lambda parameters for incomplete code (EA-66008 - assert: InferenceSession.collectApplicabilityConstraints)

This commit is contained in:
Anna Kozlova
2015-07-22 12:34:09 +02:00
parent ac362814a7
commit 3a9f429d3e
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,12 @@
import java.util.function.Function;
class Test {
{
foo(s -> {
foo(s::concat);
return s;
});
}
<S,<error descr="'>' expected."><error descr="Type parameter expected"> </error></error> void foo(Function<String, String> f){}
}