summaryrefslogtreecommitdiff
path: root/output/negative/NonDistinctMethods-error.java
blob: cfc0b01e17f9ab7830c8fdaba345d91c7da7491c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class StealMainArg {
    public static void main(String[] z) {
        A a ;
        a = new A() ;
        System.out.println(a.foo(3)) ;
    }
}

class A {

    public int foo(int a) {
        return a ;
    }

    public int foo(int b) {
        return 1 ;
    }
}