Skip to content

Incorrect error message when mixing struct/reference anonymous records #6110

@cartermp

Description

@cartermp
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions