expected expression, found ..
#105634
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
relnotes
Marks issues that should be documented in the release notes of the next release.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
..
is a valid expression (aRangeFull
literal), so this error is misleading. It should at a minimum have a suggestion to replace with the valid version&(..)
, and probably should just work. It also imho ideally shouldn't be a hard parser error blocking semantic passes; the parse of&(..)
is fairly unambiguously intended, even if we decide we should still require the parenthesis.The text was updated successfully, but these errors were encountered: