← Back to index
|
Original Bugzilla link
Bug 7939 – Assigning to Object strips away const
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-18T17:40:00Z
Last change time
2015-06-09T05:14:51Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
issues.dlang
Comments
Comment #0
by issues.dlang — 2012-04-18T17:40:20Z
This code compiles: class C { } void main() { const c = new C; Object o = c; } Clearly, it shouldn't, as it strips away const.
Comment #1
by schveiguy — 2012-04-19T04:52:10Z
*** This issue has been marked as a duplicate of issue 3731 ***