Skip to content

Elaborator reflection for generating isXXX functions for enum types #172

@anqur

Description

@anqur

This feature is inspired by @roife.

For such enum type:

type Foo = [A | B];

It's better that we could have some reflection techniques to generate these functions:

function isA<'a>(a: [A | 'a]): boolean;
function isB<'a>(a: [B | 'a]): boolean;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestx-absAbstract syntaxx-concConcrete syntaxx-surfSurface syntax

    Type

    No type
    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