Skip to content

Unused opens/values false positives with type check errors #16415

Open

Description

@kerams

devenv_J7wO1K7nma

The type checker sometimes exits early and doesn't dive into inner expressions after it has encountered an error (probably to avoid a potential cascade of unhelpful error messages). Unused opens/values analysis then works with incomplete data. I suggest we suspend this analysis if the document contains any errors.

Expected behavior

System and args are greyed out.

Actual behavior

System and args are not shown as unused.

Related information

VS 17.9.0 Preview 1.0

Activity

  1. added
    Area-Compiler-Checking
    Area-LangService-UnusedOpens
    on Dec 8, 2023
  2. added this to the Backlog milestone on Dec 8, 2023
  3. added
    Impact-Low
    and removed on Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingArea-LangService-UnusedOpensBugImpact-Low

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions