Summary: Cannot cast const(int) to long in @safe function
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2010-10-20 15:24:31 PDT ---
Even though they are value types. It seems to want to you to do
void foo5088(const(int)[] x)
   long a = cast(long)x[0];

void main()
   int[2] a;
   a[] = 6;

bug.d(36): Error: cast from const(int) to ulong not allowed in safe code

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to