mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for JDK-8042508
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
}
|
||||
@@ -103,6 +103,10 @@ public class MostSpecificResolutionTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testJDK8042508() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user