← Back to index
|
Original Bugzilla link
Bug 16522 – opIndex broken for single-length Only ranges
Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2016-09-21T20:42:00Z
Last change time
2016-09-21T21:03:37Z
Assigned to
nobody
Creator
meapineapple
Comments
Comment #0
by meapineapple — 2016-09-21T20:42:17Z
import std.range; void main(){ auto x = only(1); x[0]; // ok x.popFront(); x[0]; // breaks }
Comment #1
by mathias.lang — 2016-09-21T21:03:37Z
As discussed in the P.R. (
https://github.com/dlang/phobos/pull/4808)
this is an expected behaviour. Closing accordingly.