fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

AddOpen opens the wrong namespace for IEnumerator

Open kerams opened this issue 2 years ago • 1 comments

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 avatar Oct 22 '23 18:10 kerams

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.

abelbraaksma avatar May 15 '24 20:05 abelbraaksma