Skip to content

[regression] recursive like types => maximum call stack error #38825

@lifaon74

Description

@lifaon74

TypeScript Version: 3.9.x and 4.0.0

Search Terms: maximum call stack, recursive type

Code

On one of my big projet, migrating from typescript 3.8.3 to 3.9.3 broke many things:

  • "circular constraint" errors appeared. I need some kind of circular reference to check if a Generic type matches a specific pattern
  • "maximum call stack" error when building the project (simply running tsc)

Expected behavior:
should transpile

Related Issues:
#37475
#38198

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions