← Back to index
|
Original Bugzilla link
Bug 10686 – No [] operator overload for immutable Tuple
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-20T15:27:00Z
Last change time
2013-07-25T01:41:59Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2013-07-20T15:27:45Z
import std.typecons: Tuple; void main() { immutable Tuple!(int) t1; auto r1 = t1[0]; // OK immutable Tuple!(int, "x") t2; auto r2 = t2[0]; // error } DMD 2.064alpha gives: test.d(6): Error: no [] operator overload for type immutable(Tuple!(int, "x"))
Comment #1
by k.hara.pg — 2013-07-21T05:26:06Z
https://github.com/D-Programming-Language/phobos/pull/1428
Comment #2
by github-bugzilla — 2013-07-25T01:04:26Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/d61085c3751420b1d41c041199dd05e163120db6
fix Issue 10686 - No [] operator overload for immutable Tuple
https://github.com/D-Programming-Language/phobos/commit/ffe080e908b15525edb453102eb7c96b78ed2fe7
Merge pull request #1428 from 9rnsr/fix10686 [REG2.064a] Issue 10686 - No [] operator overload for immutable Tuple MERGED.