T[n] a; immutable(T)[n] b = a; // error

Peter Alexander peter.alexander.au at gmail.com
Sat Oct 1 04:00:20 PDT 2011


int[2] a;
immutable(int)[2] b = a;

I get "Error: cannot implicitly convert expression (a) of type int[2u] 
to immutable(int)[]"

Is there are reason for disallowing this, or is it a bug?


More information about the Digitalmars-d mailing list