aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/MethodsNotFound.java
blob: 2a7547814d10a3dea34a2134d6e5122b343b4761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class MethodsNotFound {
    public void foo() {
	"a".bar();
    }

    public void foo(int x) { 
	new Ha().foo();
    }

    public void bar() { 
	new MethodsNotFound().foo("hi");
    }
}

class Ha {
    private void foo() {}
}