Microsoft/TypeScript
GitHub ã§èŠã[5.5 regression] "Maximum call stack size exceeded" when serializing nested self-referencing class expressions
Open
#59,600 opened on 2024幎8æ12æ¥
BugDomain: Declaration EmitHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
dts declaration serializing class expression self-referencing nested
ð Version & Regression Information
- This changed between versions 5.4.x and 5.5.x
⯠Playground Link
ð» Code
const A = class A<T> {
child!: InstanceType<typeof A.B<T>>;
static B = class B<T> {
parent!: T;
};
};
ð Actual behavior
it crashes
ð Expected behavior
it shouldn't crash ð
Additional information about the issue
No response