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

           Summary: a bug to cast from array literal to ubyte[]
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: enjouzensyou.bo...@gmail.com


--- Comment #0 from Kazuki Komatsu <enjouzensyou.bo...@gmail.com> 2012-10-27 
06:22:19 PDT ---
import std.stdio;

void main()
{
    int a = 12321;
    int[] arr = [a];

    assert( (cast(ubyte[])[a])
                == (cast(ubyte[])arr) );
}


This code doesn't work!

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

Reply via email to