Skip to content

Commit d7691e3

Browse files
committed
Accept new baselines
1 parent b706a4c commit d7691e3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/baselines/reference/infiniteConstraints.errors.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ tests/cases/compiler/infiniteConstraints.ts(4,37): error TS2536: Type '"val"' ca
22
tests/cases/compiler/infiniteConstraints.ts(31,43): error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
33
tests/cases/compiler/infiniteConstraints.ts(31,63): error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
44
tests/cases/compiler/infiniteConstraints.ts(36,71): error TS2536: Type '"foo"' cannot be used to index type 'T[keyof T]'.
5-
tests/cases/compiler/infiniteConstraints.ts(48,16): error TS2589: Type instantiation is excessively deep and possibly infinite.
65

76

8-
==== tests/cases/compiler/infiniteConstraints.ts (5 errors) ====
7+
==== tests/cases/compiler/infiniteConstraints.ts (4 errors) ====
98
// Both of the following types trigger the recursion limiter in getImmediateBaseConstraint
109

1110
type T1<B extends { [K in keyof B]: Extract<B[Exclude<keyof B, K>], { val: string }>["val"] }> = B;
@@ -64,6 +63,4 @@ tests/cases/compiler/infiniteConstraints.ts(48,16): error TS2589: Type instantia
6463

6564
type Conv<T, U = T> =
6665
{ 0: [T]; 1: Prepend<T, Conv<ExactExtract<U, T>>>;}[U extends T ? 0 : 1];
67-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68-
!!! error TS2589: Type instantiation is excessively deep and possibly infinite.
6966

tests/baselines/reference/recursiveConditionalTypes.errors.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ tests/cases/compiler/recursiveConditionalTypes.ts(50,5): error TS2322: Type 'Tup
2121
Type 'number extends N ? number[] : _TupleOf<number, N, []>' is not assignable to type 'TupleOf<number, M>'.
2222
Type 'number[] | _TupleOf<number, N, []>' is not assignable to type 'TupleOf<number, M>'.
2323
Type 'number[]' is not assignable to type 'TupleOf<number, M>'.
24-
tests/cases/compiler/recursiveConditionalTypes.ts(116,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
2524
tests/cases/compiler/recursiveConditionalTypes.ts(116,9): error TS2345: Argument of type 'Grow2<[], T>' is not assignable to parameter of type 'Grow1<[], T>'.
2625
Type '[] | Grow2<[string], T>' is not assignable to type 'Grow1<[], T>'.
2726
Type '[]' is not assignable to type 'Grow1<[], T>'.
@@ -32,7 +31,7 @@ tests/cases/compiler/recursiveConditionalTypes.ts(116,9): error TS2345: Argument
3231
Type 'string' is not assignable to type 'number'.
3332

3433

35-
==== tests/cases/compiler/recursiveConditionalTypes.ts (10 errors) ====
34+
==== tests/cases/compiler/recursiveConditionalTypes.ts (9 errors) ====
3635
// Awaiting promises
3736

3837
type Awaited<T> =
@@ -180,8 +179,6 @@ tests/cases/compiler/recursiveConditionalTypes.ts(116,9): error TS2345: Argument
180179

181180
function f21<T extends number>(x: Grow1<[], T>, y: Grow2<[], T>) {
182181
f21(y, x); // Error
183-
~~~~~~~~~
184-
!!! error TS2589: Type instantiation is excessively deep and possibly infinite.
185182
~
186183
!!! error TS2345: Argument of type 'Grow2<[], T>' is not assignable to parameter of type 'Grow1<[], T>'.
187184
!!! error TS2345: Type '[] | Grow2<[string], T>' is not assignable to type 'Grow1<[], T>'.

0 commit comments

Comments
 (0)