[Issue 23278] Can't pass alias member to a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 10 00:31:07 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23278

Boris Carvajal <boris2.9 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9 at gmail.com

--- Comment #5 from Boris Carvajal <boris2.9 at gmail.com> ---
I think this is a known bug, there are some reports in the past of similar
compiler behavior.
Related issues 17435, 18969, 20077, 22497.

Put 'static' in the definition as a workaround.

static enum mxString(alias c)()
{
    return "";
}

--


More information about the Digitalmars-d-bugs mailing list