diff --git a/tests/baselines/reference/variadicTuples1.errors.txt b/tests/baselines/reference/variadicTuples1.errors.txt index 7794a14aa0c..1fc9af72e9f 100644 --- a/tests/baselines/reference/variadicTuples1.errors.txt +++ b/tests/baselines/reference/variadicTuples1.errors.txt @@ -38,7 +38,7 @@ tests/cases/conformance/types/tuple/variadicTuples1.ts(191,5): error TS2322: Typ Type 'readonly string[]' is not assignable to type 'U'. 'U' could be instantiated with an arbitrary type which could be unrelated to 'readonly string[]'. tests/cases/conformance/types/tuple/variadicTuples1.ts(203,5): error TS2322: Type 'string' is not assignable to type 'keyof [1, 2, ...T]'. - Type '"2"' is not assignable to type '"0" | (number | keyof T[]) | "1"'. + Type '"2"' is not assignable to type 'number | "0" | keyof T[] | "1"'. tests/cases/conformance/types/tuple/variadicTuples1.ts(346,14): error TS7019: Rest parameter 'x' implicitly has an 'any[]' type. tests/cases/conformance/types/tuple/variadicTuples1.ts(354,26): error TS2322: Type 'string' is not assignable to type 'number | undefined'. tests/cases/conformance/types/tuple/variadicTuples1.ts(393,19): error TS1256: A rest element must be last in a tuple type. @@ -309,7 +309,7 @@ tests/cases/conformance/types/tuple/variadicTuples1.ts(397,12): error TS1256: A k3 = '2'; // Error ~~ !!! error TS2322: Type 'string' is not assignable to type 'keyof [1, 2, ...T]'. -!!! error TS2322: Type '"2"' is not assignable to type '"0" | (number | keyof T[]) | "1"'. +!!! error TS2322: Type '"2"' is not assignable to type 'number | "0" | keyof T[] | "1"'. } // Inference between variadic tuple types