Microsoft/TypeScript
Vedi su GitHub[5.5 regression] "Maximum call stack size exceeded" when serializing nested self-referencing class expressions
Open
#59.600 aperta il 12 ago 2024
BugDomain: Declaration EmitHelp Wanted
Metriche repository
- Star
- (48.455 star)
- Metriche merge PR
- (Merge medio 6g 17h) (9 PR mergiate in 30 g)
Descrizione
🔎 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