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

a + b = 3 is interpreted as a + (b = 3) instead of emitting a syntax error #736

Closed
gkovacs opened this issue May 28, 2015 · 2 comments
Closed

Comments

@gkovacs
Copy link
Contributor

gkovacs commented May 28, 2015

geza$ lsc
LiveScript 1.3.1 - use 'lsc --help' for more information
ls> a = 1
1
ls> b = 1
1
ls> a + b = 3
4

the issue is that it's turning it into a + (b = 3) whereas this should actually be a syntax error

@igl
Copy link
Contributor

igl commented May 28, 2015

This is valid. The assignment operator can be used anywhere in a expression.

@vendethiel
Copy link
Contributor

Yeah, it seems correct to me.

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

No branches or pull requests

3 participants