Skip to content

NLL doesn't check that user type annotations are well-formed in unreachable code #54943

Description

@matthewjasper

#54942 checks well-formedness in the general case, but unreachable code is deleted before NLL can check it.

For example, this test still compiles with NLL enabled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)I-needs-decisionIssue: In need of a decision.NLL-soundWorking towards the "invalid code does not compile" goalP-highHigh priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions