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

Daniel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           Hardware|x86_64                      |All
                 OS|Windows                     |All

--- Comment #1 from Daniel <[email protected]> ---
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.

--

Reply via email to