[Issue 10687] Refused cast from uint[] to array of uint-based enums at compile-time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 1 21:38:24 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10687



--- Comment #8 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-01 21:38:20 PDT ---
(In reply to comment #7)
> (In reply to comment #6)
> > Commits pushed to master at https://github.com/D-Programming-Language/dmd
> 
> Sorry, I think the issue is not yet fixed, some of my code like this used to
> work:
> 
> immutable uint[5][] M = [[0, 1, 2, 3, 4]];
> enum Foo : uint { A, B, C, D, E }
> void main() {
>     auto   foos1 = cast(immutable(Foo[5][]))M; // OK
>     static foos2 = cast(immutable(Foo[5][]))M; // Error
> }

https://github.com/D-Programming-Language/dmd/pull/2612

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list