langtools/test/tools/javac/NonStaticFieldExpr1.out
author duke
Wed, 05 Jul 2017 16:37:21 +0200
changeset 572 18dc4ba4739a
parent 10 06bc494ca11e
child 863 3113c955a388
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
NonStaticFieldExpr1.java:10: non-static variable x cannot be referenced from a static context
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
  int y = NonStaticFieldExpr1.x;                // SHOULD BE ERROR
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
                             ^
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
1 error