You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Meta reported this on 2014-11-26T21:09:58Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13780
CC List
Description
import std.stdio; import std.traits; void main() { //Prints a blank line writeln(ParameterIdentifierTuple!((int n) => n)); }The text was updated successfully, but these errors were encountered: