Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

When NOT is followed by a parenthesized expression, use UNARY precedence
so binary operators after the group don't continue as part of the NOT
operand. This ensures:

  • NOT (0) + 1 parses as (NOT(0)) + 1
  • NOT 0 + 1 parses as NOT(0 + 1)

Enables test 02920_unary_operators_functions.

When NOT is followed by a parenthesized expression, use UNARY precedence
so binary operators after the group don't continue as part of the NOT
operand. This ensures:
- NOT (0) + 1 parses as (NOT(0)) + 1
- NOT 0 + 1 parses as NOT(0 + 1)

Enables test 02920_unary_operators_functions.
@kyleconroy kyleconroy merged commit 0076eee into main Dec 23, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants