isConstTypeVariable
stack overflow
#54610
Labels
Bug
A bug in TypeScript
Crash
For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
Bug Report
π Search Terms
isConstTypeVariable
π Version & Regression Information
I suspect it's related to the changes in #53341 (cc @ahejlsberg)
β― Playground Link
I trimmed our product code to obtain a minimal repro. This code doesn't make sense and doesn't preserve the semantic of what the original code does (
B
was originally an helper retrieving an union of all possible paths for an object), but it's much shorter and still reproduces the stack overflow.Playground link with relevant code
π» Code
π Actual behavior
Stack overflow
π Expected behavior
Shouldn't stack overflow (various errors should be reported, but not a stack overflow).
The text was updated successfully, but these errors were encountered: