Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/recursivelyExpandingUnionNoStackoverflow.errors.txt.diff

16 lines
913 B
Diff

--- old.recursivelyExpandingUnionNoStackoverflow.errors.txt
+++ new.recursivelyExpandingUnionNoStackoverflow.errors.txt
@@= skipped -0, +0 lines =@@
-recursivelyExpandingUnionNoStackoverflow.ts(3,10): error TS2589: Type instantiation is excessively deep and possibly infinite.
recursivelyExpandingUnionNoStackoverflow.ts(3,10): error TS2615: Type of property 'M' circularly references itself in mapped type '{ [P in "M"]: any; }'.
-==== recursivelyExpandingUnionNoStackoverflow.ts (2 errors) ====
+==== recursivelyExpandingUnionNoStackoverflow.ts (1 errors) ====
type N<T, K extends string> = T | { [P in K]: N<T, K> }[K];
type M = N<number, "M">;
- ~~~~~~~~~~~~~~
-!!! error TS2589: Type instantiation is excessively deep and possibly infinite.
~~~~~~~~~~~~~~
!!! error TS2615: Type of property 'M' circularly references itself in mapped type '{ [P in "M"]: any; }'.