Incorrect error message when mixing struct/reference anonymous records
Open
Area-Diagnostics
Bug
Impact-Low
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
```fsharp
let test (ar: {| IntVal: int |}) = printfn "%d" ar.IntVal
test struct {| IntVal=12 |}
```
Output:
```
error FS0001: One tuple type is a struct tuple, the other is a reference tuple
```
The message should refer to anonymous records.
Contributor guide
Assessment
This issue has not been assessed yet.