Comment #0 by monkeyworks12 — 2014-11-26T21:09:58Z
import std.stdio;
import std.traits;
void main()
{
//Prints a blank line
writeln(ParameterIdentifierTuple!((int n) => n));
}
Comment #1 by wyrlon — 2015-08-29T10:20:18Z
I was just hit by this bug as well.
It's possible to workaround with string parsing, but not pretty.
static if(is(FunctionTypeOf!T P == __parameters))
{
enum decl = P.stringof[1..$-1]; // hack, strip parenthesis
// parse decl
}
For a proper fix, __traits(identifier, ...) needs to work for function literals.