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

Missing parentheses in LogicalExpression #571

Closed
pablobfonseca opened this issue Sep 28, 2021 · 1 comment · Fixed by #590
Closed

Missing parentheses in LogicalExpression #571

pablobfonseca opened this issue Sep 28, 2021 · 1 comment · Fixed by #590
Labels

Comments

@pablobfonseca
Copy link

Motivation

SyntaxError: Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:14)

Expected behavior

It should keep the parentheses.

Actual behavior

The following code:

(false || true) ?? !1

is being transformed without parentheses, and throwing a SyntaxError

@davidbonnet
Copy link
Owner

Thanks @pablobfonseca for reporting this, should be fixed shortly.

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

Successfully merging a pull request may close this issue.

2 participants