May 20, 2014 [Issue 12771] New: opIndex on static arrays in a Variant is not implemented. | ||||
---|---|---|---|---|
| ||||
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]; } -- |
Copyright © 1999-2021 by the D Language Foundation