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

let t=s.mapIt(it) gives Error: redefinition of 't' #8580

Closed
timotheecour opened this issue Aug 8, 2018 · 0 comments · Fixed by #8584
Closed

let t=s.mapIt(it) gives Error: redefinition of 't' #8580

timotheecour opened this issue Aug 8, 2018 · 0 comments · Fixed by #8584

Comments

@timotheecour
Copy link
Member

timotheecour commented Aug 8, 2018

#[
BUG:
/Users/timothee/git_clone/nim/timn/bugs/stdlib/t01_mapIt_redefinition_of_t.nim(6, 1) template/generic instantiation from here
/Users/timothee/git_clone/nim/timn/bugs/stdlib/t01_mapIt_redefinition_of_t.nim(9, 9) Error: redefinition of 't'
]#

import sequtils

when defined(case1):
  proc test() =
    # BUG
    let t = [1,2].mapIt(it)

test()

@judofyr LemonBoy is there a better fix than changing t to something rare in implementation of mapIt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant