[Issue 1770] New: std.typecons.defineEnum example does not compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 5 09:30:41 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1770
Summary: std.typecons.defineEnum example does not compile
Product: D
Version: 2.009
Platform: All
URL: http://www.digitalmars.com/d/phobos/std_typecons.html
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: gide at nwawudu.com
Example in std.typecons for defineEnum given on the page
http://www.digitalmars.com/d/phobos/std_typecons.html does not compile.
Probably due to the changes made to enum in DMD version 2.009.
test.d
------
mixin(defineEnum!("Abc", "A", "B", 5, "C"));
C:\> dmd test.d
D:\dmd\bin\..\src\phobos\std\typecons.d(234): template instance identifier
'ValueType' is not defined
D:\dmd\bin\..\src\phobos\std\typecons.d(237): template instance
std.typecons.StringsOnly!(255) error instantiating
--
More information about the Digitalmars-d-bugs
mailing list