Summary: Fully qualified enums in default arguments of
                    non-template functions are generated with an extra
                    'module' keyword
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: ddoc
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-08-14 09:08:54 PDT ---

/// test
void bug6491(string s = std.ascii.hexDigits) {}

Generated DDoc will read:

void bug6491(string s = module ascii.hexDigits);

The 'module' should not exist, it should read 'string s = std.ascii.hexDigits'.
This can also be seen at The
problem doesn't exist if the function is templated.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to