Comment #0 by bearophile_hugs — 2010-04-02T14:21:48Z
(Not tested with the latest bug fixes, so this can be already fixed)
int foo() {
int[] a;
a.length = 1;
return 0;
}
enum int _ = foo();
void main() {}
dmd 2.042 gives:
test.d(3): Error: (a.length) = 1u cannot be evaluated at compile time