Thread overview
[Issue 22868] __traits(parameters) returns parameters of delegate instead of function
Mar 10, 2022
Dlang Bot
Mar 11, 2022
Dlang Bot
Mar 12, 2022
Dlang Bot
Mar 27, 2022
Dlang Bot
March 10, 2022
https://issues.dlang.org/show_bug.cgi?id=22868

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13798 "Fix 22868 - Let __traits(parameters) see past opApply delegates" fixing this issue:

- Fix 22868 - Let __traits(parameters) see past opApply delegates

  Ensure that `__traits(parameters)` consistently returns the parameters
  of the enclosing functions and doesn't return the parameters of the
  `opApply` delegate - leaking an implementation detail.

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

--
March 11, 2022
https://issues.dlang.org/show_bug.cgi?id=22868

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13804 "alias parameters" fixing this issue:

- 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/13804

--
March 12, 2022
https://issues.dlang.org/show_bug.cgi?id=22868

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

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

--- Comment #3 from Dlang Bot <dlang-bot@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

--
March 27, 2022
https://issues.dlang.org/show_bug.cgi?id=22868

--- Comment #4 from Dlang Bot <dlang-bot@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

--