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
toSeq
mapIt
const
import std/sequtils proc f(a: static openArray[int]) = const s1 = a.mapIt(it) const s2 = a.toSeq() f([1,2,3])
% nim -v Nim Compiler Version 2.0.14 [MacOSX: arm64] Compiled at 2025-01-06 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: bf4de6a active boot switches: -d:release
/Users/etan/Documents/Repos/nimbus-eth2/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim(1024, 13) Error: cannot evaluate at compile time: i`gensym0
Successful compile, no output
proc
let
No response
The text was updated successfully, but these errors were encountered:
Consequence of #8758 #10828 etc
Sorry, something went wrong.
Error: cannot evaluate at compile time: v
template
No branches or pull requests
Description
Nim Version
% nim -v
Nim Compiler Version 2.0.14 [MacOSX: arm64]
Compiled at 2025-01-06
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: bf4de6a
active boot switches: -d:release
Current Output
Expected Output
Known Workarounds
toSeq
/mapIt
invocation in anotherproc
then assign the output of thatproc
to theconst
let
instead ofconst
and put theconst
at caller siteAdditional Information
No response
The text was updated successfully, but these errors were encountered: