[Issue 22868] __traits(parameters) returns parameters of delegate instead of function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 12 16:43:33 UTC 2022


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13798 "Fix 22868 - Let __traits(parameters) see past
opApply delegates" was merged into stable:

- b070b2dbee6c474a80f1fe1f0eaeb6f717d3f051 by MoonlightSentinel:
  Fix 22868 - Let __traits(parameters) see past opApply delegates

  Ensure that `__traits(parameters)` consistently returns the parameters
  of the enclosing function and instead of the parameters of the
  `opApply` delegate (leaking an implementation detail).

  Also added a bunch of tests - the parts hidden by `version (Fixed)`
  fail due to another bug.

https://github.com/dlang/dmd/pull/13798

--


More information about the Digitalmars-d-bugs mailing list