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
Copy file name to clipboardExpand all lines: tests/baselines/reference/variadicTuples1.errors.txt
+33-3
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,20 @@ tests/cases/conformance/types/tuple/variadicTuples1.ts(191,5): error TS2322: Typ
35
35
'T' is assignable to the constraint of type 'U', but 'U' could be instantiated with a different subtype of constraint 'readonly string[]'.
36
36
tests/cases/conformance/types/tuple/variadicTuples1.ts(203,5): error TS2322: Type 'string' is not assignable to type 'keyof [1, 2, ...T]'.
37
37
Type '"2"' is not assignable to type '"0" | "1" | keyof T[]'.
38
-
tests/cases/conformance/types/tuple/variadicTuples1.ts(357,26): error TS2322: Type 'string' is not assignable to type 'number'.
39
-
tests/cases/conformance/types/tuple/variadicTuples1.ts(397,7): error TS2322: Type '[boolean, false]' is not assignable to type '[...number[], boolean]'.
38
+
tests/cases/conformance/types/tuple/variadicTuples1.ts(213,5): error TS2322: Type '[...T, ...T]' is not assignable to type '[unknown, unknown]'.
39
+
Type '[] | [unknown] | [unknown, unknown]' is not assignable to type '[unknown, unknown]'.
40
+
Type '[]' is not assignable to type '[unknown, unknown]'.
41
+
Source has 0 element(s) but target requires 2.
42
+
tests/cases/conformance/types/tuple/variadicTuples1.ts(217,5): error TS2322: Type '[...T, ...T]' is not assignable to type '[unknown, unknown]'.
43
+
Type 'unknown[]' is not assignable to type '[unknown, unknown]'.
44
+
Target requires 2 element(s) but source may have fewer.
45
+
tests/cases/conformance/types/tuple/variadicTuples1.ts(371,26): error TS2322: Type 'string' is not assignable to type 'number'.
46
+
tests/cases/conformance/types/tuple/variadicTuples1.ts(411,7): error TS2322: Type '[boolean, false]' is not assignable to type '[...number[], boolean]'.
40
47
Type at position 0 in source is not compatible with type at position 0 in target.
41
48
Type 'boolean' is not assignable to type 'number'.
0 commit comments