intellij-ton icon indicating copy to clipboard operation
intellij-ton copied to clipboard

Wrongly assumed unused variable

Open TrueCarry opened this issue 1 year ago • 2 comments
trafficstars

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.

TrueCarry avatar Apr 29 '24 05:04 TrueCarry

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

andreypfau avatar Jul 11 '24 03:07 andreypfau

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

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

call_func(query_id)

TrueCarry avatar Jul 14 '24 17:07 TrueCarry