Comment #0 by bearophile_hugs — 2015-01-27T14:55:54Z
int foo(int[] a) {
foreach (immutable x; a)
auto b = a ~ x;
return 0;
}
void main() {
enum r = foo([1]);
}
dmd 2.067alpha gives:
test.d(3): Error: a ~ x cannot be interpreted at compile time
test.d(7): called from here: foo([1])