digitalmars.D.bugs - [Issue 16522] New: opIndex broken for single-length Only ranges
- via Digitalmars-d-bugs (21/21) Sep 21 2016 https://issues.dlang.org/show_bug.cgi?id=16522
https://issues.dlang.org/show_bug.cgi?id=16522 Issue ID: 16522 Summary: opIndex broken for single-length Only ranges Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: meapineapple gmail.com import std.range; void main(){ auto x = only(1); x[0]; // ok x.popFront(); x[0]; // breaks } --
Sep 21 2016