new inference: 18.5.2 adjustments

This commit is contained in:
Anna Kozlova
2014-02-18 19:19:49 +01:00
parent 61039804a9
commit bd681beb26
34 changed files with 125 additions and 91 deletions

View File

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