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

Emit a diagnostic warning about parsing ambiguity in a conjunction #11

Open
katzdm opened this issue Mar 15, 2024 · 0 comments
Open

Emit a diagnostic warning about parsing ambiguity in a conjunction #11

katzdm opened this issue Mar 15, 2024 · 0 comments
Labels
diagnostics A need for improved diagnostic messaging

Comments

@katzdm
Copy link
Collaborator

katzdm commented Mar 15, 2024

While parsing a compound condition with a reflect expression on the left-hand side of an && operator, e.g.,

(refl != ^T && true)

the && token binds left to form the type T &&, whereas the author probably meant refl != (^T) && true. It would be great to detect this case and emit a warning diagnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics A need for improved diagnostic messaging
Projects
None yet
Development

No branches or pull requests

1 participant