1
Fork 0
mini-java/miniJava/tests/pa3_tests/fail366.java

16 lines
283 B
Java

/*** no access through a method in qualified reference
* COMP 520
* Identification
*/
class fail66 {
public static void main(String[] args) {
F05 c = new F05();
c = c.foo.next;
}
}
class F05 {
public F05 next;
public F05 foo() {return this;}
}