[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jan 14 18:15:48 PST 2015
https://issues.dlang.org/show_bug.cgi?id=7514
--- Comment #9 from bearophile_hugs at eml.cc ---
(In reply to bearophile_hugs from comment #8)
> Your have asked me to aggregate two different problems:
And now you have also aggregated:
void main() @safe {
immutable ulong x = 10;
auto y1 = cast(uint[2])x; // Error
auto y2 = cast(uint[2])[x]; // Error
immutable ulong[] x2 = [10];
auto y3 = cast(uint[2])x2; // Error
immutable ulong[1] x3 = [10];
auto y4 = cast(uint[2])x3; // OK
}
--
More information about the Digitalmars-d-bugs
mailing list