new inference: well formed check

This commit is contained in:
Anna Kozlova
2014-02-06 14:53:55 +01:00
parent d24e983826
commit ff66c1b01a
4 changed files with 95 additions and 80 deletions

View File

@@ -8,7 +8,7 @@ class Test {
void foo(I<? extends String, ? extends List<? extends String>> fip) { }
void test() {
foo(<error descr="Cannot infer functional interface type">(ArrayList<? extends String> p) -> p.get(0)</error>);
foo<error descr="'foo(Test.I<? extends java.lang.String,? extends java.util.List<? extends java.lang.String>>)' in 'Test' cannot be applied to '(<lambda expression>)'">((ArrayList<? extends String> p) -> p.get(0))</error>;
}
}