better syntax error for "not <condition>" instead "!<condition>" #46836
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
this code
currently emmits
Could we detect explicitly if there are 2 unchained (via && or ||) "variables" after an "if" and if the first one is "not" and explicitly suggest using "!" instead of "not" instead?
meta:
The text was updated successfully, but these errors were encountered: