Summary: Assigning to Object strips away const
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 2012-04-18 17:40:20 
PDT ---
This code compiles:

class C

void main()
    const c = new C;
    Object o = c;

Clearly, it shouldn't, as it strips away const.

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

Reply via email to