Surprising circularity when parameter within base type expression refers to the class itself #58391
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
circularity base expression class single call signature callback parameters
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.5.0-dev.20240501#code/JYOwLgpgTgZghgYwgAgApQmMBPAPAFQHsA+ZAbwChlkAKOALmSIEpGBnMKUAcwG4KAvhQqhIsRCgDKCABYQAtnFwBBUpWoY4AE0IgANtmQAHDFmwB+Rukw4VxfkJHho8JMgDCeuGzZ3yVZBAIAHdaVmRlB2EtCAQvDGQEXQ4PLx9GXEkIPRhiGgDgGPBgGGBodk4eABoKZmQAXlJcADEyvS02PIDS7I7GVt62Guo4EBBCMDgwYGTLZGk5RUzs3Jq6xtTvXwB5AFcwI33mqEJ5FraO4nthHCMUfGw7gj2D-dJ6-2oAfXwXw7BGL99v8HPwKLcUH8jiczvgBu1Og1PsgANoAaWQoGQAGsINhCDAmPCOgBdRgAIh+ULA5OQEAAHpAQB0cXiCUSLmx0SSAtRzBzBtyUZSga8aTzqNRGEEAG7QUHRWLxFAwXYgBDTXTIDhcEDcGjhB5PHU8a4UBlGQhQMCJNJsCJ0xkQZn2zxbOw0cnKcnMfLUMjIBjayp65ACYbI6gmGzYRh0dakABSkm2ADkAHQmvUlbDxiPh2rkARAA
π» Code
π Actual behavior
π Expected behavior
No error. Correct declarations can be emitted for this without any problems
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: