TypeScript Version: typescript@3.4.2, typescript@3.5.0-dev.20190409
Search Terms:
Code
type Foo<T> = Extract<{[i in keyof T]: Foo<T[i]>; }[0], 0>;
Expected behavior:
Should print an error for indexing object literal with 0 or using circular references.
Or at least the same behavior as in v3.3.4000:
Output when compiled with `typescript@3.3.4000`

Actual behavior:
NodeJS standard heap crash report: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Details

Playground from typescriptlang.com produces in-browser heap memory allocation failure:
Details

Playground Link:
Klick me if you are not afraid of crashing your browser's heap
Related Issues:
TypeScript Version:
typescript@3.4.2,typescript@3.5.0-dev.20190409Search Terms:
Code
Expected behavior:
Should print an error for indexing object literal with
0or using circular references.Or at least the same behavior as in
v3.3.4000:Output when compiled with `typescript@3.3.4000`
Actual behavior:
NodeJS standard heap crash report:
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memoryDetails
Playground from
typescriptlang.comproduces in-browser heap memory allocation failure:Details
Playground Link:
Klick me if you are not afraid of crashing your browser's heap
Related Issues:
typesafe-joiheap overflow JavaScript heap out of memory when compiling typesafe-joi on v3.4.x #30794typescript@3.4.13.4.1 tsc works 20! times slower than 3.3.4 #30663