fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Incorrect error message when mixing struct/reference anonymous records

Open cartermp opened this issue 7 years ago • 0 comments

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.

cartermp avatar Jan 16 '19 00:01 cartermp