in
membership test short-circuits evaluation for list literals
#4465
Labels
needs triage
needs triage
in
membership test short-circuits evaluation for list literals
#4465
Version Information
vyper --version
): v0.4.0What's your issue about?
as an optimization, vyper currently expands array membership like
x in [a, b, c]
tox == a or x == b or x == c
. however, this short circuits, which can lead to not evaluating side effects. for example,How can it be fixed?
Fill this in if you know how to fix it.
The text was updated successfully, but these errors were encountered: