testdata for JDK-8042508

This commit is contained in:
Anna Kozlova
2014-05-07 12:29:28 +04:00
parent 1ab69ce2b2
commit cc743c35cc
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class Test {
interface I<T> { void m(T arg); }
<T1> void foo(T1 arg, java.io.Serializable x) {}
<T2> void foo(I<T2> arg, Cloneable x) {}
void test(int[] array) {
this.<String>foo<error descr="Cannot resolve method 'foo(<lambda expression>, int[])'">(p -> {}, array)</error>;
}
}