fsharp
fsharp copied to clipboard
AddOpen opens the wrong namespace for IEnumerator
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
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.