Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(42639): "in" operator not narrowing the type if used with a const#44893

Merged
gabritto merged 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
a-tarasyuk:feat/42639a-tarasyuk/TypeScript:feat/42639Copy head branch name to clipboard
Jul 21, 2021
Merged

feat(42639): "in" operator not narrowing the type if used with a const#44893
gabritto merged 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
a-tarasyuk:feat/42639a-tarasyuk/TypeScript:feat/42639Copy head branch name to clipboard

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #42639

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Jul 4, 2021
@gabritto gabritto self-assigned this Jul 21, 2021
@typescript-bot typescript-bot added For Milestone Bug PRs that fix a bug with a specific milestone and removed For Backlog Bug PRs that fix a backlog bug labels Jul 21, 2021

@gabritto gabritto 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 had a minor question, but otherwise looks good to me, thanks for contributing.

Comment thread src/compiler/binder.ts Outdated

@gabritto gabritto 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.

thanks, everything seems good now

@gabritto gabritto merged commit e064817 into microsoft:main Jul 21, 2021
@andrewbranch

Copy link
Copy Markdown
Member

@typescript-bot perf test this

(not sure if it works on merged PRs?)

@typescript-bot

typescript-bot commented Jul 21, 2021

Copy link
Copy Markdown
Contributor

Heya @andrewbranch, I've started to run the perf test suite on this PR at 278f172. You can monitor the build here.

@andrewbranch

Copy link
Copy Markdown
Member

(It doesn’t)

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

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

"in" operator not narrowing the type if used with a const

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.