Bug 10683 – std.range.join of an array of array of tuple of string

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-07-20T11:38:00Z
Last change time
2014-09-20T07:14:33Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-07-20T11:38:02Z
import std.typecons: tuple; import std.range: join; void main() { auto r1 = [[tuple(1)]].join; // OK auto r2 = [[tuple("x")]].join; // Error } DMD 2.064alpha gives: [email protected](1923): Assertion failure I think this used to work.
Comment #1 by hsteoh — 2014-09-19T22:45:25Z
Works in git HEAD. Please reopen if it still doesn't work for you. I'll fire up a PR to add a unittest for this to prevent future regression.
Comment #2 by hsteoh — 2014-09-19T22:53:13Z
Comment #3 by github-bugzilla — 2014-09-20T07:14:33Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/5fdfc204930a2bbd8940a8505e8f4fe325b89f1d Merge pull request #2539 from quickfur/issue10683 Add unittest for worksforme bug.