Skip to content

Remove carve-out in conditional type instantiation that hopefully has been rendered unneeded#51151

Merged
weswigham merged 1 commit into
microsoft:mainfrom
weswigham:recursive-alias-err-fix
Oct 13, 2022
Merged

Remove carve-out in conditional type instantiation that hopefully has been rendered unneeded#51151
weswigham merged 1 commit into
microsoft:mainfrom
weswigham:recursive-alias-err-fix

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #50688

This is all good w/ our local test suite, but the extended suite is what matters as, iirc, that's what originally motivated this line. Still, we've changed some other stuff about conditional instantiation since the original change, so hopefully this weird carve-out just isn't needed for compatibility anymore.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Oct 12, 2022
@weswigham

Copy link
Copy Markdown
Member Author

@typescript-bot user test this inline
@typescript-bot test this
@typescript-bot run dt

@typescript-bot

typescript-bot commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Heya @weswigham, I've started to run the diff-based user code test suite on this PR at 2fe0be0. You can monitor the build here.

Update: The results are in!

@typescript-bot

typescript-bot commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 2fe0be0. You can monitor the build here.

@typescript-bot

typescript-bot commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Heya @weswigham, I've started to run the extended test suite on this PR at 2fe0be0. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

@weswigham Here are the results of running the user test suite comparing main and refs/pull/51151/merge:

Something interesting changed - please have a look.

Details

puppeteer

packages/puppeteer-core/tsconfig.json

@weswigham

weswigham commented Oct 12, 2022

Copy link
Copy Markdown
Member Author

OK, I'm actually pretty happy with the puppeteer breaks - the source for puppeteer actually looks like it has the similar circularity issues to the linked issue (they just ignore them via comment pragma), which actually are fixed (at least partially) by this and thus surface these new (correct as far as I can tell) errors, since the return types in question no longer get error-any'd (though are maybe still circular in other ways, seeing as there's no Unused expect error directive error). RWC is clean (as may be expected of codebases predating conditional types entirely), DT is completely green (and, iirc, DT is what motivated this line in the first place).

@typescript-bot

typescript-bot commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Heya @weswigham, I've started to run the diff-based top-repos suite on this PR at 2fe0be0. You can monitor the build here.

Update: The results are in!

@typescript-bot

Copy link
Copy Markdown
Contributor

@weswigham Here are the results of running the top-repos suite comparing main and refs/pull/51151/merge:

Everything looks good!

@ahejlsberg ahejlsberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm definitely good with removing that carve-out. In fact, I never really understood why it was needed in the first place.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.7 circular type annotation regression

5 participants