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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 27 02:24:34 UTC 2022


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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13892 "Merge stable into master" was merged into
master:

- aa42a6bfdb80b5c56b911d329d7bedbfa3eeb318 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/13892

--


More information about the Digitalmars-d-bugs mailing list