We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code: ------- unittest { import std.algorithm.comparison : equal; import std.algorithm.iteration : chunkBy; string[] data = [ "abc", "abc", "def" ]; int[] indices = [ 0, 1, 2 ]; auto chunks = indices.chunkBy!((i, j) => data[i] == data[j]); assert(chunks.equal!equal([ [ 0, 1 ], [ 2 ] ])); } ------- Compiler output: ------- /usr/src/d/phobos/std/algorithm/iteration.d(1761): Error: function test.__unittest_L9_C1.ChunkByImpl!(__lambda1, int[]).ChunkByImpl.Group.popFront cannot access frame of function test.__unittest_L9_C1 /usr/src/d/phobos/std/range/primitives.d(884): Error: template instance `std.range.primitives.isInputRange!(Group)` error instantiating /usr/src/d/phobos/std/algorithm/iteration.d(1781): instantiated from here: isForwardRange!(Group) -------
The text was updated successfully, but these errors were encountered:
https://github.com/dlang/phobos/pull/6441
Sorry, something went wrong.
This is related to issue #14909, but the PR only fixes this problem, not that one, so I'm keeping the bug reports separate for now.
PR has been closed, as it has been decided this needs to be addressed in the compiler rather than the library.
No branches or pull requests
hsteoh reported this on 2018-04-09T23:57:56Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18751
Description
The text was updated successfully, but these errors were encountered: