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

mta`chrono chrono at mta-international.net
Sat Oct 1 05:32:56 PDT 2011


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

Am 01.10.2011 13:00, schrieb Peter Alexander:
> 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