Skip to content
New issue

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

Newruntime: setLen() not working on sequences of owned refs #11530

jwollen opened this issue Jun 18, 2019 · 1 comment


Copy link

commented Jun 18, 2019

var x: seq[owned(ref int)]

fails to compile with

../Nim/lib/core/seqs.nim(154, 20) Error: sink parameter `value` is already consumed at ../Nim/lib/core/seqs.nim(154, 20)

as grow tries to initialize new elements from the same owned value.


This comment has been minimized.

Copy link

commented Jul 3, 2019

Even setLen(0) on a empty seq fails, quite a blocker for newruntime.

@Araq Araq closed this in 124a584 Jul 8, 2019

narimiran added a commit that referenced this issue Jul 15, 2019

fixes #11530
(cherry picked from commit 124a584)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.