summaryrefslogtreecommitdiff
path: root/output/negative/DumbSend-error.java
blob: 529ad396e51a4c1dc2ff98abeff92a00526b781b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class DumbSend {
    public static void main(String[] a){
        System.out.println(new Test().start());
    }
}

class Test {

    Test test;
    int[] i;

    public int start() {
        i = new int[10];
        test = i.next();
        return 0;
    }

    public Test next() {
        System.out.println(1);
        return test;
    }
}