File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
tests/baselines/reference Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments