Skip to content

Commit 79bdc26

Browse files
committed
Accept new baselines
1 parent 63387bb commit 79bdc26

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(4,6): error TS2456: Type alias 'Recurse' circularly references itself.
2+
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(8,6): error TS2456: Type alias 'Recurse1' circularly references itself.
3+
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(12,6): error TS2456: Type alias 'Recurse2' circularly references itself.
4+
5+
6+
==== tests/cases/conformance/types/mapped/recursiveMappedTypes.ts (3 errors) ====
7+
8+
// Recursive mapped types simply appear empty
9+
10+
type Recurse = {
11+
~~~~~~~
12+
!!! error TS2456: Type alias 'Recurse' circularly references itself.
13+
[K in keyof Recurse]: Recurse[K]
14+
}
15+
16+
type Recurse1 = {
17+
~~~~~~~~
18+
!!! error TS2456: Type alias 'Recurse1' circularly references itself.
19+
[K in keyof Recurse2]: Recurse2[K]
20+
}
21+
22+
type Recurse2 = {
23+
~~~~~~~~
24+
!!! error TS2456: Type alias 'Recurse2' circularly references itself.
25+
[K in keyof Recurse1]: Recurse1[K]
26+
}

0 commit comments

Comments
 (0)