Bug 21801 – std.typecons.ReplaceType does not work for `in` parameters

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-05T19:46:21Z
Last change time
2021-04-27T09:42:47Z
Keywords
pull
Assigned to
No Owner
Creator
johanengelen

Comments

Comment #0 by johanengelen — 2021-04-05T19:46:21Z
Failing testcase: ``` import std.typecons; void foo() { static assert(is(ReplaceType!(int, float, int function(in long, ref const int)) == float function(in long, ref const float))); static assert(is(ReplaceType!(int, float, int function(long, in int*)) == float function(long, in float*))); } ``` Problem related to https://github.com/dlang/phobos/pull/7570
Comment #1 by dlang-bot — 2021-04-05T19:54:48Z
@JohanEngelen created dlang/phobos pull request #7937 "fix Issue 21801 - std.typecons.ReplaceType does not work for `in` parameters" fixing this issue: - fix Issue 21801 - std.typecons.ReplaceType does not work for `in` parameters See related: https://github.com/dlang/phobos/pull/7570 https://github.com/dlang/phobos/pull/7937
Comment #2 by dlang-bot — 2021-04-15T07:36:57Z
dlang/phobos pull request #7937 "fix Issue 21801 - std.typecons.ReplaceType does not work for `in` parameters" was merged into stable: - a3261ccb0d238f0ef5fc19fe8d2eab4fcfac0c4c by Johan Engelen: fix Issue 21801 - std.typecons.ReplaceType does not work for `in` parameters See related: https://github.com/dlang/phobos/pull/7570 https://github.com/dlang/phobos/pull/7937
Comment #3 by dlang-bot — 2021-04-27T09:42:47Z
dlang/phobos pull request #8012 "merge stable" was merged into master: - b8cdef5ffcc3e9c9c65df27387247d53629cf2df by Johan Engelen: fix Issue 21801 - std.typecons.ReplaceType does not work for `in` parameters See related: https://github.com/dlang/phobos/pull/7570 https://github.com/dlang/phobos/pull/8012