https://issues.dlang.org/show_bug.cgi?id=8278

hst...@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hst...@quickfur.ath.cx
         Resolution|---                         |FIXED

--- Comment #1 from hst...@quickfur.ath.cx ---
Works in git HEAD:
-----
import std.range, std.algorithm;
void main() {
        struct FwdRange { // N.B. no slicing or length here
                enum empty = false;
                auto front = 1;
                void popFront() {}
                @property auto save() { return this; }
        }
        auto c = std.range.chunks(FwdRange(), 5);

        import std.stdio;
        writeln(c.take(10));
}
-----

--

Reply via email to