dotnet / dotnet/fsharp

"unitVar0" showing in locals

Open
#12,408 1 comment 0 reactions 0 assignees View on GitHub
Area-Debug Feature Improvement Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

"unitvar0" is showing when in a closure the takes no arguments like this:

```fsharp
let F() =
let x = 1
let y = 2
(fun () -> x + y)
let f = F()
f()
```

![image](https://user-images.githubusercontent.com/7204669/142064531-f4365a18-117b-412f-89dd-64b4ffa15a10.png)

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.