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

No negative integer/double literal #232

Open
brice-morin opened this issue Jun 15, 2018 · 2 comments
Open

No negative integer/double literal #232

brice-morin opened this issue Jun 15, 2018 · 2 comments

Comments

@brice-morin
Copy link
Collaborator

-1 or -1.5 seem to be expression including a unary minus and a positive number...

This can be annoying in places where we expect a literal (instead of a generic expression) and where we want this literal to be negative...

@jakhog
Copy link

jakhog commented Jun 20, 2018

I've thought about this before, but don't remember any example. Do you have a good one?

@brice-morin
Copy link
Collaborator Author

Array initializers, where only literals and property references (to read-only properties) are, at least currently, allowed. But I made the grammar more generic and then added some constraints in the checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants