-
Notifications
You must be signed in to change notification settings - Fork 184
Reject true && not true
#3585
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
Reject true && not true
#3585
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| true && not true | ||
| ^~~~ expected a `(` after `not` | ||
| ^~~~ unexpected 'true', expecting end-of-input | ||
|
|
||
| true || not true | ||
| ^~~~ expected a `(` after `not` | ||
| ^~~~ unexpected 'true', expecting end-of-input | ||
|
|
||
| true && not (true) | ||
| ^ expected a `(` immediately after `not` | ||
| ^ unexpected '(', expecting end-of-input | ||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to add a test to confirm that be rejected, but I am not sure how to write the test.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we can write something like this in test/prism/errors/command_calls_31.txt: |
||
| true && not | ||
| true | ||
| ^~~~ expected a `(` after `not` | ||
| ^~~~ unexpected 'true', expecting end-of-input | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error message is a bit weird, but I am not sure how to fix it.