int[2] a; immutable(int)[2] b = a.idup;
That should not be necessary. There's no reason to allocate a heap array in order to copy data that implicitly casts to immutable.
Definitely a bug. -Steve
int[2] a; immutable(int)[2] b = a.idup;
That should not be necessary. There's no reason to allocate a heap array in order to copy data that implicitly casts to immutable.
Definitely a bug. -Steve