Skip to content

No mutability for Enums #143

Description

@panagosg7

This should flag a malformed-type error:

enum SyntaxKind {
    ClassDeclaration
}

export interface Node<M extends ReadOnly> {
    /*@ (Immutable) kind: SyntaxKind<Immutable> */     // FLAG ERROR HERE
    kind: SyntaxKind;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions