[Issue 548] New: Accessing a value of a deprecated enum is not caught
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 17 12:34:49 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=548
Summary: Accessing a value of a deprecated enum is not caught
Product: D
Version: 0.174
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: smjg at iname.com
As it happens, deprecation appears to have no effect on enums (see also issue
542, issue 543 and issue 544), but accessing one of its member values is one
instance that merits its own mention.
----------
deprecated enum DepEnum { A }
int x = DepEnum.A;
----------
--
More information about the Digitalmars-d-bugs
mailing list