[Issue 7939] New: Assigning to Object strips away const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 18 17:39:26 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7939
Summary: Assigning to Object strips away const
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list