Skip to content

Conversation

@ahejlsberg
Copy link
Member

Fixes #34635.

@RyanCavanaugh
Copy link
Member

@typescript-bot cherry-pick this to release-3.7

@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.7.2 milestone Oct 24, 2019
typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Oct 24, 2019
Component commits:
7be9251 Exclude ?? operator from true/false literal check in createFlowCondition

b980216 Accept new API baselines

3d4c14c Add tests

7362545 Accept new baselines
@typescript-bot
Copy link
Collaborator

Hey @RyanCavanaugh, I've opened #34710 for you.

return isOptionalChainRoot(node.parent) && node.parent.expression === node;
}

export function isQuestionQuestionExpression(node: Node) {
Copy link
Member

Choose a reason for hiding this comment

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

The analogous factory function is createNullishCoalesce, so I think this should be isNullishCoalesce.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I guess, though for the uninitiated, nullish coalesce is meaningless and question question is self-explanatory. But hey, gotta have something for the quizzes. 😏

Copy link
Member

Choose a reason for hiding this comment

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

How else do you expect me to rig TSConf trivia?

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-3.7

@typescript-bot
Copy link
Collaborator

Hey @DanielRosenwasser, I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.7 manually.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Oct 24, 2019
Component commits:
7be9251 Exclude ?? operator from true/false literal check in createFlowCondition

b980216 Accept new API baselines

3d4c14c Add tests

7362545 Accept new baselines

2d1af77 Address CR feedback

8f0de27 Accept new API baselines
@ahejlsberg ahejlsberg merged commit c404c08 into master Oct 24, 2019
@ahejlsberg ahejlsberg deleted the fix34635 branch October 24, 2019 22:57
DanielRosenwasser pushed a commit that referenced this pull request Oct 24, 2019
Component commits:
7be9251 Exclude ?? operator from true/false literal check in createFlowCondition

b980216 Accept new API baselines

3d4c14c Add tests

7362545 Accept new baselines

2d1af77 Address CR feedback

8f0de27 Accept new API baselines
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code is incorrectly marked as unreachable when using nullish coalescing

5 participants