summaryrefslogtreecommitdiff
path: root/output/negative/DumbBracketSend-error.java
blob: 263f66f60b0ad91082c6169fc25bc5a0401acc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class ex19 {
    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;
    }
}