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/circularlyConstrainedMappedTypeContainingConditionalNoInfiniteInstantiationDepth.errors.txt
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
26
26
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
27
27
tests/cases/conformance/types/conditional/conditionalTypes1.ts(115,5): error TS2322: Type 'T[keyof T] extends Function ? never : keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
28
-
Type 'keyof T' is not assignable to type 'never'.
29
-
Type 'string | number | symbol' is not assignable to type 'never'.
30
-
Type 'string' is not assignable to type 'never'.
28
+
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
29
+
Type 'keyof T' is not assignable to type 'never'.
30
+
Type 'string | number | symbol' is not assignable to type 'never'.
31
+
Type 'string' is not assignable to type 'never'.
31
32
tests/cases/conformance/types/conditional/conditionalTypes1.ts(116,5): error TS2322: Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
32
33
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
33
34
Type 'string' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
34
35
tests/cases/conformance/types/conditional/conditionalTypes1.ts(117,5): error TS2322: Type 'T[keyof T] extends Function ? keyof T : never' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
35
-
Type 'keyof T' is not assignable to type 'never'.
36
+
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
37
+
Type 'keyof T' is not assignable to type 'never'.
36
38
tests/cases/conformance/types/conditional/conditionalTypes1.ts(134,10): error TS2540: Cannot assign to 'id' because it is a read-only property.
37
39
tests/cases/conformance/types/conditional/conditionalTypes1.ts(135,5): error TS2542: Index signature in type 'DeepReadonlyArray<Part>' only permits reading.
38
40
tests/cases/conformance/types/conditional/conditionalTypes1.ts(136,22): error TS2540: Cannot assign to 'id' because it is a read-only property.
Type 'string' is not assignable to type 'ZeroOf<T>'.
52
54
tests/cases/conformance/types/conditional/conditionalTypes1.ts(263,9): error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'T1', but here has type 'Foo<T & U>'.
53
55
tests/cases/conformance/types/conditional/conditionalTypes1.ts(288,43): error TS2322: Type 'T95<U>' is not assignable to type 'T94<U>'.
54
-
Type 'boolean' is not assignable to type 'true'.
56
+
Type 'number | boolean' is not assignable to type 'T94<U>'.
tests/cases/conformance/types/conditional/conditionalTypes2.ts(24,5): error TS2322: Type 'Invariant<B>' is not assignable to type 'Invariant<A>'.
8
8
Types of property 'foo' are incompatible.
9
9
Type 'B extends string ? keyof B : B' is not assignable to type 'A extends string ? keyof A : A'.
10
-
Type 'keyof B' is not assignable to type 'keyof A'.
11
-
Type 'string | number | symbol' is not assignable to type 'keyof A'.
12
-
Type 'string' is not assignable to type 'keyof A'.
13
-
Type 'string' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
14
-
Type 'keyof B' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
15
-
Type 'string | number | symbol' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
10
+
Type 'B | keyof B' is not assignable to type 'A extends string ? keyof A : A'.
11
+
Type 'B' is not assignable to type 'A extends string ? keyof A : A'.
12
+
Type 'A' is not assignable to type 'A extends string ? keyof A : A'.
13
+
Type 'keyof B' is not assignable to type 'keyof A'.
14
+
Type 'string | number | symbol' is not assignable to type 'keyof A'.
15
+
Type 'string' is not assignable to type 'keyof A'.
16
16
Type 'string' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
17
-
Type 'keyof B' is not assignable to type '"valueOf"'.
18
-
Type 'string | number | symbol' is not assignable to type '"valueOf"'.
19
-
Type 'string' is not assignable to type '"valueOf"'.
17
+
Type 'keyof B' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
18
+
Type 'string | number | symbol' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
19
+
Type 'string' is not assignable to type 'number | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf"'.
20
+
Type 'keyof B' is not assignable to type '"valueOf"'.
21
+
Type 'string | number | symbol' is not assignable to type '"valueOf"'.
22
+
Type 'string' is not assignable to type '"valueOf"'.
20
23
tests/cases/conformance/types/conditional/conditionalTypes2.ts(25,5): error TS2322: Type 'Invariant<A>' is not assignable to type 'Invariant<B>'.
21
24
Types of property 'foo' are incompatible.
22
25
Type 'A extends string ? keyof A : A' is not assignable to type 'B extends string ? keyof B : B'.
23
-
Type 'A' is not assignable to type 'B'.
24
-
'A' is assignable to the constraint of type 'B', but 'B' could be instantiated with a different subtype of constraint '{}'.
26
+
Type 'A | keyof A' is not assignable to type 'B extends string ? keyof B : B'.
27
+
Type 'A' is not assignable to type 'B extends string ? keyof B : B'.
28
+
Type 'A' is not assignable to type 'B'.
29
+
'A' is assignable to the constraint of type 'B', but 'B' could be instantiated with a different subtype of constraint '{}'.
25
30
tests/cases/conformance/types/conditional/conditionalTypes2.ts(73,12): error TS2345: Argument of type 'Extract<Extract<T, Foo>, Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
26
31
Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
27
32
Type 'Extract<T, Bar>' is not assignable to type '{ foo: string; bat: string; }'.
0 commit comments