aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/pr71723/foo/Foo.java
blob: 628cb86f08bce3bfd346332e370a4c1eb21dce1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package foo;



public class Foo extends AncientFoo {
    protected int i() { return 42; }
    public static void main(String[] args) {
        new Foo().doStuff();
    }
    public void doStuff() { }
    protected int ancientI() { return 42; }
}

class AncientFoo {
    protected int ancientI() { return -42; }
    protected int ancientJ() { return 0; }
}