Bug 13441 – joiner asserts with only(x) separator

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-08T21:52:00Z
Last change time
2014-09-10T16:52:34Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-09-08T21:52:54Z
/////////// test.d /////////// import std.algorithm; import std.range; void main() { string[][] lines = [null]; lines .joiner(only("b")) .array; } ////////////////////////////// This trips the "internal error" assertion in joiner.Result.useSeparator.
Comment #1 by dlang-bugzilla — 2014-09-08T21:58:20Z
Comment #2 by github-bugzilla — 2014-09-10T16:52:33Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c506b03ec49556529fed3fc20efe34edb50363cf fix Issue 13441 - joiner asserts with only(x) separator https://github.com/D-Programming-Language/phobos/commit/fb88c5a83dc6cdbf51d07fe20341c173384b249e Merge pull request #2499 from CyberShadow/pull-20140908-215454 fix Issue 13441 - joiner asserts with only(x) separator