Thread overview
[Issue 22871] Using an alias to `__traits(parameters)` causes unknown error
Mar 11, 2022
Dlang Bot
Mar 14, 2022
Dlang Bot
Mar 27, 2022
Dlang Bot
March 11, 2022
https://issues.dlang.org/show_bug.cgi?id=22871

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Aliases to                  |Using an alias to
                   |`__traits(parameters)`      |`__traits(parameters)`
                   |causes unknown error        |causes unknown error

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

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 #13804 "alias parameters" fixing this issue:

- Fix 22871 - Support aliases to __traits(parameters).

  The current implementation had two bugs preventing users from using
  the tuple returned by `__traits(parameters)` bound to an alias:

  - the parser rejected `typeof(__traits(X))`, i.e. a traits without
    parameters. Fixed by removing the check for existing arguments.
  - type semantic rejected the alias as invalid and eagerly issued an
    error. Fixed by extending the list of viable traits.

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

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

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13804 "Fix 22871 - Support aliases to __traits(parameters)" was merged into stable:

- a7e2d14159b9dfa790e8784e86c477248f299503 by MoonlightSentinel:
  Fix 22871 - Support aliases to __traits(parameters).

  The current implementation had two bugs preventing users from using
  the tuple returned by `__traits(parameters)` bound to an alias:

  - the parser rejected `typeof(__traits(X))`, i.e. a traits without
    parameters. Fixed by removing the check for existing arguments.
  - type semantic rejected the alias as invalid and eagerly issued an
    error. Fixed by extending the list of viable traits.

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

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

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

- cc3c1deb0a8cf639ed25089714280046682ae533 by Florian:
  Fix 22871 - Support aliases to __traits(parameters). (#13804)

  The current implementation had two bugs preventing users from using
  the tuple returned by `__traits(parameters)` bound to an alias:

  - the parser rejected `typeof(__traits(X))`, i.e. a traits without
    parameters. Fixed by removing the check for existing arguments.
  - type semantic rejected the alias as invalid and eagerly issued an
    error. Fixed by extending the list of viable traits.

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

--