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: nob...@puremagic.com ReportedBy: rayerd....@gmail.com --- Comment #0 from Haruki Shigemori <rayerd....@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: -------