[Issue 12771] New: opIndex on static arrays in a Variant is not implemented.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 19 22:39:32 PDT 2014
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 at puremagic.com
Reporter: opantm2+dbugs at 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];
}
--
More information about the Digitalmars-d-bugs
mailing list