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:
Anders Hejlsberg
2021-08-17 07:00:19 -07:00
committed by GitHub
parent dc80e6a28b
commit 79474fdfd2
6 changed files with 253 additions and 249 deletions

View File

@@ -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;