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

Destructuring gotcha #83

Closed
odino opened this issue Dec 26, 2018 · 0 comments
Closed

Destructuring gotcha #83

odino opened this issue Dec 26, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@odino
Copy link
Collaborator

odino commented Dec 26, 2018

When running this

x = "10"
[a] = [100]

the parser sees: x = "10"[a] since [ is a valid infix operator. We should make sure that, when on a new line, index expressions get truncated. This is not the easiest thing since the parser skips newlines by default, but it's definitely doable.

@odino odino added the bug Something isn't working label Dec 26, 2018
@odino odino added this to the preview-3 milestone Dec 26, 2018
@odino odino added the help wanted Extra attention is needed label Dec 27, 2018
@odino odino closed this as completed in a785b1b Dec 29, 2018
odino added a commit that referenced this issue Dec 29, 2018
Fixed destructuring gotchas, closes #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant