Skip to content

String Literal Param in Default Type Definition in Interface Function Causes Breakage #1035

@frank-weindel

Description

@frank-weindel

Code

let var1;

interface MyInterface {
  func<T = Lowercase<'StringLiteral'>>(): T;
}

let var2;

JavaScript and TypeScript Nightly version: 5.6.0-dev.20240623

Screenshot 2024-06-24 at 12 33 28 PM

Breakage continues for many other keywords at the same block level such as: let, const, export, for, while, interface etc. class itself seems to overcome the breakage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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