[Issue 22325] ReplaceType fails on templated type instantiated with void-returning function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 20 18:18:22 UTC 2021


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #8248 "Fix Issue 22325 - ReplaceType
fails on templated type instantiated wi…" fixing this issue:

- Fix Issue 22325 - ReplaceType fails on templated type instantiated with
void-returning function

  Previously, when recursing into a type's template arguments,
  ReplaceTypeUnless would mistakenly attempt to evaluate a template alias
  parameter as an expression. In cases where the alias parameter was not a
  valid expression or could not be evaluated at compile time, this caused
  a compilation failure; in other cases, it caused ReplaceTypeUnless to
  give an incorrect result.

  This change makes ReplaceTypeUnless correctly treat template alias
  parameters as aliases.

https://github.com/dlang/phobos/pull/8248

--


More information about the Digitalmars-d-bugs mailing list