testdata to check invalid method refs

This commit is contained in:
anna
2013-11-28 14:14:45 +01:00
parent 282bfb6323
commit 852785ea18
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,9 @@
public class Test {
interface I {
void foo();
}
public static void main(String[] args){
I i = <error descr="Cannot resolve symbol 'UnknownClass'">UnknownClass</error>::wait;
}
}
@@ -94,6 +94,10 @@ public class MethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testUnknownQualifierClass() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}