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

`internal error: could not find env param for` when one iterator references another #9827

Closed
arnetheduck opened this issue Nov 30, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@arnetheduck
Copy link
Contributor

commented Nov 30, 2018

proc f() =
  var s: seq[int]
  iterator a(): int =
    for x in s: yield x

  iterator b(): int =
    for x in a(): yield x
nim c test
Hint: used config file '/home/arnetheduck/.choosenim/toolchains/nim-0.19.0/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
test.nim(3, 12) Error: internal error: could not find env param for a

nim --version
Nim Compiler Version 0.19.0 [Linux: amd64]
Compiled at 2018-09-26
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: f6c5c636bb1a1f4e1301ae0ba5a8afecef439132
active boot switches: -d:release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.