On Monday, 14 October 2013 at 14:18:10 UTC, Maxim Fomin wrote:
On Monday, 14 October 2013 at 11:35:32 UTC, Jack Applegame wrote:
Why this doesn't compile?

http://dpaste.dzfl.pl/21ef5b04

class Foo {}

struct Bar1 {
        const(Foo[]) member;    
}

struct Bar2 {
        const Foo member;       
}

void main() {
        const Bar1 bar1;
        const Bar2 bar2;
        Bar1 b1 = bar1; // ok
Bar2 b2 = bar2; // cannot implicitly convert expression (bar2) of type const(Bar2) to Bar2
}

This is compilable using git head.

Recently I found a small compiler bug.
http://d.puremagic.com/issues/show_bug.cgi?id=11187

And, a week ago it is fixed. 2.064 beta1 contains the fix.

Kenji Hara

Reply via email to