-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Map function with a variable under walkDirRec caused a compile error #12375
Labels
Comments
A similar example, but using import os, sequtils, sequtils, sugar
for file in walkDirRec("./"):
let multiplier = 5
echo(toSeq(1..4).mapIt(it * multiplier)) |
Thanks. |
This issue has not been fixed on v1.6.6.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using a
map
function with a variable underwalkDirRec
iterator caused a compile error.Example
The below snippet itself does not make sense because I made up it for reproducing the problem with minimum code. I came across the problem during coding a real application.
Current Output
Expected Output
Possible Solution
I found the error did not occur when not using variable or not under
walkDirRec
.Work (Not using a variable)
Work (Not under
walkDirRec
)Additional Information
The text was updated successfully, but these errors were encountered: