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

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


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

--- Comment #1 from Lucia Cojocaru <lucia.mcojocaru at gmail.com> ---
The cause of the issue is the way the template code is written in phobos:
https://github.com/dlang/phobos/blob/master/std/traits.d#L1225

It looks like this is expected for lazy variables:
http://forum.dlang.org/thread/mailman.62.1288627040.21107.digitalmars-d-learn@puremagic.com

Should we support the ParameterDefault template for functions with lazy
parameters?

--


More information about the Digitalmars-d-bugs mailing list