digitalmars.D.bugs - [Issue 12771] New: opIndex on static arrays in a Variant is not
- via Digitalmars-d-bugs (22/22) May 19 2014 https://issues.dlang.org/show_bug.cgi?id=12771
https://issues.dlang.org/show_bug.cgi?id=12771 Issue ID: 12771 Summary: opIndex on static arrays in a Variant is not implemented. Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: opantm2+dbugs gmail.com Currently OpID.index always performs an assert(0) if a static array is stored. Sample: import std.variant; void main() { Variant v = cast(int[4])[0, 1, 2, 3]; auto a = v[2]; } --
May 19 2014