Skip to content

Unclear error, FS3204: If a union type has more than one case and is a struct, then all fields within the union type must be given unique names #3648

@abelbraaksma

Description

@abelbraaksma

FS3204: If a union type has more than one case and is a struct, then all fields within the union type must be given unique names

That error is thrown for a construct like this:

[<Struct>]
type A = B of int | C of int

Could we update that error to say what is actually wrong or somehow make it clearer? I have no idea what is wrong with the code above, as the two cases have unique names B and C.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions