dotnet / dotnet/fsharp

AddOpen opens the wrong namespace for IEnumerator

Open
#16,155 1 comment 1 reaction 0 assignees View on GitHub
Area-LangService-CodeFixes Bug good first issue help wanted Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

**Repro steps**

```fsharp
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.