new inference: report inference errors of containing call for lambdas

This commit is contained in:
Anna Kozlova
2015-11-20 21:41:40 +01:00
parent 19a7ef3488
commit be2db1f940
9 changed files with 28 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ class NoLambda {
static <T> T id(T i2) {return i2;}
{
id<error descr="'id(T)' in 'NoLambda' cannot be applied to '(<lambda expression>)'">(() -> {System.out.println("hi");})</error>;
id(<error descr="Object is not a functional interface">() -> {System.out.println("hi");}</error>);
NoLambda.<Runnable>id(() -> {System.out.println("hi");});
}
}