You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crash looks to be fixed by #38904 (meaning the crash is probably similar in nature or exactly the issue with the updated definition of Array.prototype.flat shipped in 3.9). After that it looks like you just have a lot of newly detected circularities in generic constraints, like TKVMap extends TFiniteStateKeyValueMapConstraint<TValue, TFinalState, TKVMap>, where in TFiniteStateKeyValueMapConstraint, TKVMap meaningfully is supposed to determine the output shape. IIRC, this is new because in 3.9 we now actually can flag circularities arising as a result of mapped type creation (which is how TKVMap is eventually used recursively - in a mapped type), where prior to 3.9 we'd fail to flag these (and instead silently use an empty object type). The new behavior is more complete, as previously we were essentially failing to check these constraints.
@kasperisager mind opening a new issue for yours? That's definitely a good repro of a crash distinct from the one in the OP here (which is fixed). The OP's crash was in node building, while yours is in instantiation itself.
TypeScript Version: 3.9.x and 4.0.0
Search Terms: maximum call stack, recursive type
Code
On one of my big projet, migrating from typescript 3.8.3 to 3.9.3 broke many things:
Expected behavior:
should transpile
Related Issues:
#37475
#38198
The text was updated successfully, but these errors were encountered: