dotnet / dotnet/fsharp

Incorrect error message when mixing struct/reference anonymous records

Open
#6,110 0 comments 0 reactions 0 assignees View on GitHub
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

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.