Semantic Diff

#8988 Translate char to number in genType

1 commit

9e2f371482f529406d70df0565784aa8df3554e9..pr-8988

7427a9200 · Christoph Knittel with Claude Opus 5.5 · Oct 23, 2026

Translate char to number in genType

Why

char is an alias of int since #8892, but genType's table of builtin types had no row for it and does not expand the abbreviation, so a char in a genType signature was emitted as the TypeScript type char, which does not exist.

modifiedRepresentation genType's TypeScript type of char

@genTypelet char0 = (x: char) => x
text
Before
After
export const char0: (x:char) => char = CoreJS.char0 as any;export const char0: (x:number) => number = CoreJS.char0 as any;