Skip to content

Commit d86612c

Browse files
committed
Accept new baselines
1 parent e727845 commit d86612c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/baselines/reference/infiniteConstraints.errors.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
tests/cases/compiler/infiniteConstraints.ts(3,37): error TS2589: Type instantiation is excessively deep and possibly infinite.
12
tests/cases/compiler/infiniteConstraints.ts(4,37): error TS2536: Type '"val"' cannot be used to index type 'B[Exclude<keyof B, K>]'.
23
tests/cases/compiler/infiniteConstraints.ts(31,43): error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
34
tests/cases/compiler/infiniteConstraints.ts(31,63): error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
45
tests/cases/compiler/infiniteConstraints.ts(36,71): error TS2536: Type '"foo"' cannot be used to index type 'T[keyof T]'.
6+
tests/cases/compiler/infiniteConstraints.ts(36,71): error TS2589: Type instantiation is excessively deep and possibly infinite.
57

68

7-
==== tests/cases/compiler/infiniteConstraints.ts (4 errors) ====
9+
==== tests/cases/compiler/infiniteConstraints.ts (6 errors) ====
810
// Both of the following types trigger the recursion limiter in getImmediateBaseConstraint
911

1012
type T1<B extends { [K in keyof B]: Extract<B[Exclude<keyof B, K>], { val: string }>["val"] }> = B;
13+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14+
!!! error TS2589: Type instantiation is excessively deep and possibly infinite.
1115
type T2<B extends { [K in keyof B]: B[Exclude<keyof B, K>]["val"] }> = B;
1216
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1317
!!! error TS2536: Type '"val"' cannot be used to index type 'B[Exclude<keyof B, K>]'.
@@ -51,4 +55,6 @@ tests/cases/compiler/infiniteConstraints.ts(36,71): error TS2536: Type '"foo"' c
5155
declare function function1<T extends {[K in keyof T]: Cond<T[K]>}>(): T[keyof T]["foo"];
5256
~~~~~~~~~~~~~~~~~
5357
!!! error TS2536: Type '"foo"' cannot be used to index type 'T[keyof T]'.
58+
~~~~~~~~~~~~~~~~~
59+
!!! error TS2589: Type instantiation is excessively deep and possibly infinite.
5460

0 commit comments

Comments
 (0)