mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Increase type instantiation depth limit (#45025)
* Bump instantiation depth limit to 500 * Accept new baselines * Update tests * Accept new baselines
This commit is contained in:
@@ -47,7 +47,8 @@ type TT0 = TupleOf<string, 4>;
|
||||
type TT1 = TupleOf<number, 0 | 2 | 4>;
|
||||
type TT2 = TupleOf<number, number>;
|
||||
type TT3 = TupleOf<number, any>;
|
||||
type TT4 = TupleOf<number, 100>; // Depth error
|
||||
type TT4 = TupleOf<number, 100>;
|
||||
type TT5 = TupleOf<number, 1000>; // Depth error
|
||||
|
||||
function f22<N extends number, M extends N>(tn: TupleOf<number, N>, tm: TupleOf<number, M>) {
|
||||
tn = tm;
|
||||
|
||||
Reference in New Issue
Block a user