You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 7, 2023. It is now read-only.
The most likely reason for the bug is that the generic mapper for expressions used inside the inlining phase, does not record variables from the foreach expression properly in the context:
Describe the bug
Inlining does not handle local variable shadowing properly when within
foreach
expressions.To Reproduce
The following zip contains a simple test:
inlinetest.zip
Unzip the file and execute the contract with the following command:
For the following expression in the test clause:
The result is:
The local variable
c
shadows the global constantc
properly for thelet
expression, but not for theforeach
expression.Expected behavior
The expected result should be:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: