[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 20 04:32:03 PST 2016


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

--- Comment #2 from Lucia Cojocaru <lucia.mcojocaru at gmail.com> ---
PR with fix here: https://github.com/dlang/phobos/pull/4977

This works for me now:

import std.traits;

int main()
{
    void f(lazy int x = 0) {}
    pragma(msg, ParameterDefaultValueTuple!f);
    return 0;
}

--


More information about the Digitalmars-d-bugs mailing list