[Issue 22383] Array of bottom types not recognized as a range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 14 17:23:23 UTC 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8275 "Fix 22383 - Reject noreturn[] as an
autodecodable string" was merged into master:

- d90fc903d928a769ce72f0269fecc7e4d7ef8bba by MoonlightSentinel:
  Fix 22383 - Reject noreturn[] as an autodecodable string

  `noreturn[]` does not contain characters and hence is not subject to
  autodecoding. The previous behaviour caused the range primitives (`put`,
  ...) to call into autodecoding related functions which couldn't handle
  `noreturn[]`.
  That error caused `isInputRange!(noreturn[])` to yield false.

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

--


More information about the Digitalmars-d-bugs mailing list