forked from JavaTX/JavaCompilerCore
17 lines
229 B
Plaintext
17 lines
229 B
Plaintext
|
public class Access{
|
||
|
public String nonStaticMember="abc";
|
||
|
|
||
|
public nonStaticMethod() {
|
||
|
return "def";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class TestStaticAccessError {
|
||
|
|
||
|
public methodError1(a,b) {
|
||
|
x;
|
||
|
a=x.nonStaticMember;
|
||
|
b=x.nonStaticMethod();
|
||
|
}
|
||
|
}
|