mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Accept new baselines
This commit is contained in:
26
tests/baselines/reference/recursiveMappedTypes.errors.txt
Normal file
26
tests/baselines/reference/recursiveMappedTypes.errors.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(4,6): error TS2456: Type alias 'Recurse' circularly references itself.
|
||||
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(8,6): error TS2456: Type alias 'Recurse1' circularly references itself.
|
||||
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(12,6): error TS2456: Type alias 'Recurse2' circularly references itself.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/mapped/recursiveMappedTypes.ts (3 errors) ====
|
||||
|
||||
// Recursive mapped types simply appear empty
|
||||
|
||||
type Recurse = {
|
||||
~~~~~~~
|
||||
!!! error TS2456: Type alias 'Recurse' circularly references itself.
|
||||
[K in keyof Recurse]: Recurse[K]
|
||||
}
|
||||
|
||||
type Recurse1 = {
|
||||
~~~~~~~~
|
||||
!!! error TS2456: Type alias 'Recurse1' circularly references itself.
|
||||
[K in keyof Recurse2]: Recurse2[K]
|
||||
}
|
||||
|
||||
type Recurse2 = {
|
||||
~~~~~~~~
|
||||
!!! error TS2456: Type alias 'Recurse2' circularly references itself.
|
||||
[K in keyof Recurse1]: Recurse1[K]
|
||||
}
|
||||
Reference in New Issue
Block a user