[dmd-beta] 2.056 beta 2: Not a regression, right?

Nick Sabalausky bus_dmdbeta at semitwist.com
Mon Oct 24 00:03:43 PDT 2011


This worked on 2.055, but the 2.056 beta gives "dupImmutable.d(9): Error: 
cannot implicitly convert element type immutable(Bar) to mutable in 
iarr.dup":

struct Bar
{
    int[] b;
}

void main()
{
    immutable Bar[] iarr = [];
    Bar[] arr = iarr.dup;
}

I *think* that's a bugfix (6695 maybe?) and not a regression, but I wanted 
to double-check.



More information about the dmd-beta mailing list