← Back to index
|
Original Bugzilla link
Bug 6863 – Can upcast to Base from const(Derived)
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-10-30T00:38:00Z
Last change time
2011-12-12T21:23:28Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
rayerd.wiz
Comments
Comment #0
by rayerd.wiz — 2011-10-30T00:38:10Z
// dmd 2.56 class Base {} class Derived : Base {} void main() { Base x = new const(Derived); // accepts-invalid }
Comment #1
by rayerd.wiz — 2011-10-30T00:46:40Z
Fixed a summary typo.
Comment #2
by yebblies — 2011-12-12T21:23:28Z
*** This issue has been marked as a duplicate of issue 3731 ***