Skip to content

Make contextFlags an explicitly required parameter #49720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2022

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Jun 29, 2022

This is a followup to #49707.

There are more places we don't pass contextFlags down; make the parameter required to make it harder to forget to pass it.

It seems to me that all of the cases where we add contextFlags to a call are bugs, but I haven't been able to think up any test cases to exhibit them. e.g., I would think that you could create a test somewhat like that in #49707 but where the inferred type is in a yield, but I'm not sure how.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 29, 2022
@jakebailey jakebailey requested review from sandersn and weswigham July 6, 2022 21:53
@jakebailey jakebailey merged commit 59238db into microsoft:main Jul 6, 2022
@jakebailey jakebailey deleted the fix-44596-followup branch July 6, 2022 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants