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

Can't shadow ARGS in Main #39259

Closed
fredrikekre opened this issue Jan 14, 2021 · 0 comments · Fixed by #39262
Closed

Can't shadow ARGS in Main #39259

fredrikekre opened this issue Jan 14, 2021 · 0 comments · Fixed by #39262
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version

Comments

@fredrikekre
Copy link
Member

Works in Julia < 1.5 but fails after:

$ julia14 -e 'ARGS=1'

$ julia15 -e 'ARGS=1'
ERROR: cannot assign a value to variable Base.ARGS from module Main

$ julia16 -e 'ARGS=1'
ERROR: cannot assign a value to variable Base.ARGS from module Main

$ julia-master -e 'ARGS=1'
ERROR: cannot assign a value to variable Base.ARGS from module Main

Similar to #34924 but that only happened with const.

@fredrikekre fredrikekre added bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version labels Jan 14, 2021
@JeffBezanson JeffBezanson self-assigned this Jan 14, 2021
@KristofferC KristofferC mentioned this issue Jan 19, 2021
60 tasks
KristofferC pushed a commit that referenced this issue Jan 19, 2021
KristofferC pushed a commit that referenced this issue Feb 1, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this issue May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this issue May 9, 2021
staticfloat pushed a commit that referenced this issue Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants