Skip to content

No mutability for Enums #143

@panagosg7

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;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions