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
{{ message }}
Repository navigation
Type Instantiation is Excessively Deep Error Regression in #37348Β #60567
declareclass_InternalTypeDataModel{prepareDerivedData: [any,any];};declareclassTypeDataModel<// If this type parameter is deleted the circularity goes away.Unused,DerivedData,>extends_InternalTypeDataModel{prepareDerivedData: this extendsTypeDataModel<any, infer DerivedData>
? // This second element in the tuple is also necessary for some reason.[this,any]
: any;}
π Actual behavior
Type instantiation is excessively deep and possibly infinite.
π Expected behavior
No error.
Additional information about the issue
I understand the weirdness in this minimized code but the actual code I was reducing actually does useful things and doesn't really seem so contrived in context. In actual code all type parameters and tuple elements actually do useful things but this reproduction shows it doesn't matter if they're used, just that they exist, for some reason.
Activity