Skip to content

Add intrinsic to extract the discriminant from an enum #16307

Closed
@emberian

Description

@emberian

This could really help #13623. My usecase is comparing token types. I don't care what the contents are, and I don't want to write an explosive combinatorial match to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions