Skip to content

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

Open
@katzdm

Description

@katzdm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsA need for improved diagnostic messaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions