[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 21:42:38 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22325
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8248 "Fix Issue 22325 - ReplaceType fails on
templated type instantiated wi…" was merged into master:
- 44257f132ca99a16a34e475f844e93e3822d231c by Paul Backus:
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