Verified Commit d6615144 authored by ubduq's avatar ubduq
Browse files

Add test cases for field access from static contexts

parent 957e4d74
class FieldAccessStatic {
public int nonStatic;
public static void main(String[] args) {
nonStatic = 42;
class FieldAccess {
public int field;
public static void main(String[] args) {
new FieldAccess().accessField();
public void accessField() {
int i = FieldAccess.field;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment