array-access-on-returned-value.mj 246 Bytes
Newer Older
Christian Schnorr's avatar
Christian Schnorr committed
1 2 3 4 5 6 7 8 9 10 11 12
class Main {
    public static void main(String[] arguments) {
        Main main = new Main();
        main.getArray()[0] = 1;
        
        new Main().getArray()[0] = 2;
    }

    public int[] getArray() {
        return new int[0];
    }
}