[Issue 22383] Array of bottom types not recognized as a range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 14 13:03:08 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22383
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #8275 "Fix 22383 - Reject
noreturn[] as an autodecodable string" fixing this issue:
- 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