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

Symbol resolution bug for locally defined variables #1015

Open
clinssen opened this issue Mar 18, 2024 · 0 comments
Open

Symbol resolution bug for locally defined variables #1015

clinssen opened this issue Mar 18, 2024 · 0 comments
Labels

Comments

@clinssen
Copy link
Contributor

The model

model resolution_test2:
    state:
        foo boolean = true

    update:
        if foo:
            f real = 1.
        else:
            f real = 2.

gives the error "Variable 'f' redeclared !" on the second "f real = ..." line, whereas the variable scope should be local.

@clinssen clinssen added the bug label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant