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

Cannot have two anonymous iterators in one proc #3788

Closed
flyx opened this issue Jan 28, 2016 · 0 comments
Closed

Cannot have two anonymous iterators in one proc #3788

flyx opened this issue Jan 28, 2016 · 0 comments

Comments

@flyx
Copy link
Contributor

@flyx flyx commented Jan 28, 2016

proc foo() =
    var
        a = iterator(): int =
            discard
        b = iterator(): int =
            discard

foo()

Output:

test1.nim(5, 13) Error: redefinition of ':anonymous'
@Araq Araq closed this in 5a33e87 Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.