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

[BUGFIX] Explicitly set variables should override local variables #849

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

s2b
Copy link
Contributor

@s2b s2b commented Dec 9, 2023

The default behavior of the newly introduced local and global variable scopes has been that existing local variables are preferred over global variables if both exist. While this makes sense in general, if a local variable gets overwritten by a VariableViewHelper, this value couldn't be used in the local context because the local variable still had its old value.

This change makes sure that both the local and the global variable get the new value. This eliminates the described inconsistencies when using a name of a local variable for a global variable.

Resolves #846

The default behavior of the newly introduced local and global
variable scopes has been that existing local variables are
preferred over global variables if both exist. While this makes
sense in general, if a local variable gets overwritten by a
VariableViewHelper, this value couldn't be used in the local
context because the local variable still had its old value.

This change makes sure that both the local and the global
variable get the new value. This eliminates the described
inconsistencies when using a name of a local variable for
a global variable.
@s2b s2b changed the title [BUGFIX] Explicitly set variables override local variables [BUGFIX] Explicitly set variables should override local variables Dec 9, 2023
@s2b s2b merged commit 5b8a5cc into main Dec 11, 2023
6 checks passed
@s2b s2b deleted the bugfix/addGlobalVariable branch December 11, 2023 12:48
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

Successfully merging this pull request may close these issues.

f:variable not working correctly inside f:for VH
2 participants