mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
testdata: check that method ref on static interface method is accepted
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
interface I {
|
||||
static void a() {}
|
||||
}
|
||||
|
||||
interface J {
|
||||
void foo();
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
J j = I::a;
|
||||
}
|
||||
}
|
||||
@@ -237,6 +237,10 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testRefOnStaticInterfaceMethod() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user