Skip to content

Can't shadow ARGS in Main #39259

@fredrikekre

Description

@fredrikekre

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.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions