Skip to content

Empty variant type #6987

Open
Open
@cknitt

Description

@cknitt

Follow-up to #6952 where @glennsl wrote:

... In OCaml, an empty variant type would be type a = |. That doesn't seem to be supported in Rescript though.

Do we want to support this in ReScript? Can we use the same syntax?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions