Skip to content

genType emits char as a TypeScript type #8975

Closed

Description

@cristianoc

Found by differential semantic drift analysis from a7721303 to b123b7c3.

What is broken

genType emits char as a TypeScript type.

@genType let f = (c: char) => c generates export const f: (c:char) => char; char is not a TypeScript type, while int gives number.

The genType code is unchanged in this range, so the gap may predate it; #8892 settles what char is at runtime.

Possible cause (speculation only)

A guess: genType's builtin table predates char being an alias, and nothing tests a char in a genType signature.

Activity

  1. added theissue type on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions