Source

gdc / gdc.test / fail_compilation / fail351.d

Full commit
// 2780

struct Immutable {
    immutable uint[2] num;

    ref uint opIndex(uint index) immutable {
        return num[index];
    }
}

void main() {
    immutable Immutable foo;
    //foo[0]++;
}