[Issue 20848] Bug in formatValueImpl
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 28 10:21:56 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20848
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #7556 "Fix issue 20848: format should work with
immutable(void)[]" was merged into master:
- 7cc61dda2ce197c44fbb6d505f31d81e654f5054 by H. S. Teoh:
Fix issue 20848: format should work with immutable(void)[]
The bug is that if `T == immutable(void)[]`, then `const(T)` does not
collapse to `const(void[])`, but is actually `const(immutable(void)[])`.
So a strict type equality check will fail.
However, `const(T)` *is* implicitly convertible to `const(void[])`,
which serves our purpose just as well. So just use that check instead.
https://github.com/dlang/phobos/pull/7556
--
More information about the Digitalmars-d-bugs
mailing list