dotnet / dotnet/fsharp

Missing brackets in tupled DU field intellisense

Open
#15,787 2 comments 0 reactions 0 assignees View on GitHub
Area-LangService-ToolTips Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

The following DU has two cases with different structures, but intellisense is missing a bracket in the tupled Case1 `x` field and so doesn't distinguish between the different structures.
```fsharp
type DU =
| Case1 of x : (int * int) * y: int // BUG. Intellisense shows DU.Case1: x: int * int * y: int -> DU
| Case2 of x: int * int * y: int // Intellisense shows DU.Case2: x: int * int * y: int -> DU
```

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.