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

Index write access to nonexistent variables are not caught #889

Closed
xiaq opened this issue Dec 31, 2019 · 1 comment
Closed

Index write access to nonexistent variables are not caught #889

xiaq opened this issue Dec 31, 2019 · 1 comment
Labels

Comments

@xiaq
Copy link
Member

@xiaq xiaq commented Dec 31, 2019

Minimal example:

echo $a[0]

This should trigger a compilation error if $a has not been defined. Instead, it triggers an exception.

@xiaq xiaq changed the title Index access to nonexistent variables are not caught Index write access to nonexistent variables are not caught Jan 12, 2020
@xiaq
Copy link
Member Author

@xiaq xiaq commented Jan 12, 2020

Actually the minimal example is:

a[0] = foo
@xiaq xiaq closed this in 4fb04bc Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.