mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
testdata: ensure method ref qualified are checked over static problems
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class Test {
|
||||
interface I {
|
||||
void foo();
|
||||
}
|
||||
|
||||
private Object o;
|
||||
|
||||
public static void main(String[] args){
|
||||
I i = <error descr="Non-static field 'o' cannot be referenced from a static context">o</error>::wait;
|
||||
}
|
||||
}
|
||||
@@ -99,6 +99,10 @@ public class MethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testQualifiersInStaticContext() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user