Skip to content

AddOpen opens the wrong namespace for IEnumerator #16155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #15408
kerams opened this issue Oct 22, 2023 · 1 comment
Open
Tracked by #15408

AddOpen opens the wrong namespace for IEnumerator #16155

kerams opened this issue Oct 22, 2023 · 1 comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Bug good first issue help wanted Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone

Comments

@kerams
Copy link
Contributor

kerams commented Oct 22, 2023

Repro steps

let x (enumerator: IEnumerator<'t>) = ()

Use the suggested code fix for IEnumerator.

Expected behavior

Code fix suggests to open System.Collections.Generic.

Actual behavior

Code fix suggests to open System.Collections, which only contains the non-generic IEnumerator.

Known workarounds

None.

Related information

VS 17.8.0 Preview 3.0

@kerams kerams added Bug Area-LangService-CodeFixes Code fixes associated with diagnostics Needs-Triage labels Oct 22, 2023
@github-actions github-actions bot added this to the Backlog milestone Oct 22, 2023
@T-Gro T-Gro added Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. and removed Needs-Triage labels Oct 23, 2023
@psfinaki psfinaki mentioned this issue Oct 26, 2023
85 tasks
@abelbraaksma
Copy link
Contributor

Thanks for linking this @keram, I'll close the referenced issue. FWIW, it shows similar behavior with a different type. This issue is part of the AddOpenCodeFixProvider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Bug good first issue help wanted Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Projects
Status: New
Development

No branches or pull requests

3 participants