Source

gdc / gdc.test / fail_compilation / fail111.d

1
2
3
4
5
6
7
8
9
// 289

alias int ft(int);

ft[] x;  // is allowed 

void test() {
    x.length = 2;  // crashes DMD
}