[Issue 6863] New: Can upcast to Base from cosnt(Derived)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Oct 30 00:39:21 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6863
           Summary: Can upcast to Base from cosnt(Derived)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: rayerd.wiz at gmail.com
--- Comment #0 from Haruki Shigemori <rayerd.wiz at gmail.com> 2011-10-30 00:38:10 PDT ---
// dmd 2.56
class Base {}
class Derived : Base {}
void main()
{
    Base x = new const(Derived); // accepts-invalid
}
-- 
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