[Issue 20848] Bug in formatValueImpl

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 13 21:47:57 UTC 2020


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

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

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

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@quickfur created dlang/phobos pull request #7556 "Fix issue 20848: format
should work with immutable(void)[]" fixing this issue:

- 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