//// [excessivelyLargeTupleSpread.ts]
// #41771

type BuildTuple<L extends number, T extends any[] = [any]> = 
    T['length'] extends L ? T : BuildTuple<L, [...T, ...T]>;

type A = BuildTuple<3>

type T0 = [any];
type T1 = [...T0, ...T0];
type T2 = [...T1, ...T1];
type T3 = [...T2, ...T2];
type T4 = [...T3, ...T3];
type T5 = [...T4, ...T4];
type T6 = [...T5, ...T5];
type T7 = [...T6, ...T6];
type T8 = [...T7, ...T7];
type T9 = [...T8, ...T8];
type T10 = [...T9, ...T9];
type T11 = [...T10, ...T10];
type T12 = [...T11, ...T11];
type T13 = [...T12, ...T12];
type T14 = [...T13, ...T13]; // 2^14 > 10,000

const a0 = [0] as const;
const a1 = [...a0, ...a0] as const;
const a2 = [...a1, ...a1] as const;
const a3 = [...a2, ...a2] as const;
const a4 = [...a3, ...a3] as const;
const a5 = [...a4, ...a4] as const;
const a6 = [...a5, ...a5] as const;
const a7 = [...a6, ...a6] as const;
const a8 = [...a7, ...a7] as const;
const a9 = [...a8, ...a8] as const;
const a10 = [...a9, ...a9] as const;
const a11 = [...a10, ...a10] as const;
const a12 = [...a11, ...a11] as const;
const a13 = [...a12, ...a12] as const;
const a14 = [...a13, ...a13] as const; // 2^14 > 10,000


//// [excessivelyLargeTupleSpread.js]
// #41771
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
var a0 = [0];
var a1 = __spreadArray(__spreadArray([], a0, true), a0, true);
var a2 = __spreadArray(__spreadArray([], a1, true), a1, true);
var a3 = __spreadArray(__spreadArray([], a2, true), a2, true);
var a4 = __spreadArray(__spreadArray([], a3, true), a3, true);
var a5 = __spreadArray(__spreadArray([], a4, true), a4, true);
var a6 = __spreadArray(__spreadArray([], a5, true), a5, true);
var a7 = __spreadArray(__spreadArray([], a6, true), a6, true);
var a8 = __spreadArray(__spreadArray([], a7, true), a7, true);
var a9 = __spreadArray(__spreadArray([], a8, true), a8, true);
var a10 = __spreadArray(__spreadArray([], a9, true), a9, true);
var a11 = __spreadArray(__spreadArray([], a10, true), a10, true);
var a12 = __spreadArray(__spreadArray([], a11, true), a11, true);
var a13 = __spreadArray(__spreadArray([], a12, true), a12, true);
var a14 = __spreadArray(__spreadArray([], a13, true), a13, true); // 2^14 > 10,000
