Bug 6491 – Fully qualified values in default arguments of non-template functions are generated with an extra 'module' keyword

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-08-14T09:08:00Z
Last change time
2011-08-15T01:09:20Z
Keywords
ddoc, patch
Assigned to
nobody
Creator
kennytm

Comments

Comment #0 by kennytm — 2011-08-14T09:08:54Z
Example: -------------------- /// test void bug6491(string s = std.ascii.hexDigits) {} -------------------- Generated DDoc will read: -------------------- void bug6491(string s = module ascii.hexDigits); test -------------------- The 'module' should not exist, it should read 'string s = std.ascii.hexDigits'. This can also be seen at http://d-programming-language.org/phobos/std_stream.html#EndianStream. The problem doesn't exist if the function is templated.
Comment #1 by kennytm — 2011-08-14T10:51:39Z
Comment #2 by bugzilla — 2011-08-15T01:09:20Z