Skip to content

No error or warning on duplicate CompiledName #4737

Description

@kerams

https://fable.io/repl/#?code=C4TwDgpgBAGlC8BYAUFNUA+UDaAeAwgPYC2YAlgDYQAmAcgIbHQBEAZq8wHwC6UAginSYcBEuSp1GLdl14AhIA&html=Q&css=Q

type X =
    | [<CompiledName "ff">] A
    | [<CompiledName "ff">] B

Fable, unlike .NET, honours this attribute on union cases. However, it doesn't verify that the names are unique. At the very least I would like to see a warning if there are valid use cases for this, otherwise an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions