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
@ahejlsberg ahejlsberg enabled auto-merge October 10, 2025 14:56
@ahejlsberg ahejlsberg added this pull request to the merge queue Oct 10, 2025
Merged via the queue into main with commit 09edcb8 Oct 10, 2025
22 checks passed
@ahejlsberg ahejlsberg deleted the fix-1778 branch October 10, 2025 15:06
a11delavar added a commit to a11delavar/tsgo-bug-1778 that referenced this pull request Oct 11, 2025
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