Skip to content

Conversation

ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Oct 10, 2025

This PR adds an optimized code path for obtaining the type of a new expression for a single-signature non-generic constructor function. This is similar to the optimized code path we already have for obtaining the type of calls to single-signature non-generic functions. In addition to being more efficient, these optimized code paths reduce the potential for circularity errors.

Fixes #1778.

@ahejlsberg ahejlsberg requested review from Copilot and jakebailey and removed request for Copilot October 10, 2025 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

skipLibCheck not being respected leading to different type inference behavior throwing TS7022
2 participants