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

Wrongly assumed unused variable #171

Open
TrueCarry opened this issue Apr 29, 2024 · 2 comments
Open

Wrongly assumed unused variable #171

TrueCarry opened this issue Apr 29, 2024 · 2 comments

Comments

@TrueCarry
Copy link

image

Contract compiles if query id is declared here. Throws error if query id commented out. I have another query_id declaration inside one of the if branches, this could be related.

@andreypfau
Copy link
Member

It's not clear how to reproduce the problem, can you provide a code example?

@TrueCarry
Copy link
Author

Can't remember exact details, but it was something like

int query_id = ...
if (x) {
    int query_id = ...
}

call_func(query_id)

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

No branches or pull requests

2 participants