testdata: ensure method ref qualified are checked over static problems

This commit is contained in:
Anna Kozlova
2014-04-17 16:22:36 +02:00
parent b49d8e753f
commit 1698f7bb29
2 changed files with 15 additions and 0 deletions

View File

@@ -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;
}
}