Recursive type constraint sometimes causes type checking errors. #52570
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
recursive type constraint
π Version & Regression Information
β― Playground Link
Only happens in multi files projects in VS Code. Repo: https://github.com/dragomirtitian/recursive-type-constarint-bug-ts-5.0
π» Code
π Actual behavior
When you first open the project in VS code you get the errors below. Any further editing of the file makes the error s go away.
Also happens in a custom build tool using the compiler API
π Expected behavior
The code either fails all the time or type checks all the time
Note: The circular constraint which is present above and seems to trigger the bug doesnβt seem to make much sense in our case, so we took the opportunity to clean up the types, so this is not blocking for us, but the behavior is still very strange.
The text was updated successfully, but these errors were encountered: