dotnet / dotnet/fsharp

Too many type variables

Open
#7,783 8 comments 2 reactions 0 assignees View on GitHub
Area-LangService-ToolTips Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

Code like this:

```fsharp
let inline yeet a b c d e = (c - d) * a + (e * f) // ...
yeet 1.0 2.0 3.0 4.0 5.0
```

Ends up creating a lot of type variables that leak out into tooltips:

![yeet](https://user-images.githubusercontent.com/6309070/67871890-56fb9700-faee-11e9-81fe-7fa18584609f.png)

Additionally, the `...` in the tooltip implies we'll elide info about concrete instantiations, but we do not.

It's also probably worth finding a better way to format all of the constraints, since a single line for that many of them makes the VS tooltips go wild.

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.