Skip to content

Commit 174f400

Browse files
committed
Accept new baselines
1 parent 9083f6c commit 174f400

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/baselines/reference/inferTypes1.errors.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ tests/cases/conformance/types/conditional/inferTypes1.ts(75,15): error TS2304: C
1515
tests/cases/conformance/types/conditional/inferTypes1.ts(75,15): error TS4081: Exported type alias 'T62' has or is using private name 'U'.
1616
tests/cases/conformance/types/conditional/inferTypes1.ts(75,43): error TS2304: Cannot find name 'U'.
1717
tests/cases/conformance/types/conditional/inferTypes1.ts(75,43): error TS4081: Exported type alias 'T62' has or is using private name 'U'.
18-
tests/cases/conformance/types/conditional/inferTypes1.ts(76,26): error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
19-
tests/cases/conformance/types/conditional/inferTypes1.ts(76,52): error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
20-
tests/cases/conformance/types/conditional/inferTypes1.ts(76,62): error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
2118
tests/cases/conformance/types/conditional/inferTypes1.ts(82,44): error TS2344: Type 'U' does not satisfy the constraint 'string'.
2219
Type 'number' is not assignable to type 'string'.
2320
tests/cases/conformance/types/conditional/inferTypes1.ts(144,40): error TS2322: Type 'T' is not assignable to type 'string'.
2421

2522

26-
==== tests/cases/conformance/types/conditional/inferTypes1.ts (19 errors) ====
23+
==== tests/cases/conformance/types/conditional/inferTypes1.ts (16 errors) ====
2724
type Unpacked<T> =
2825
T extends (infer U)[] ? U :
2926
T extends (...args: any[]) => infer U ? U :
@@ -131,12 +128,6 @@ tests/cases/conformance/types/conditional/inferTypes1.ts(144,40): error TS2322:
131128
~
132129
!!! error TS4081: Exported type alias 'T62' has or is using private name 'U'.
133130
type T63<T> = T extends (infer A extends infer B ? infer C : infer D) ? string : number;
134-
~~~~~~~
135-
!!! error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
136-
~~~~~~~
137-
!!! error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
138-
~~~~~~~
139-
!!! error TS1338: 'infer' declarations are only permitted in the 'extends' clause of a conditional type.
140131

141132
type T70<T extends string> = { x: T };
142133
type T71<T> = T extends T70<infer U> ? T70<U> : never;

0 commit comments

Comments
 (0)