Skip to content

Conversation

@emiedonmokumo
Copy link

Fixes #62553
Added a guard in the optional chain refactor to prevent it from being offered inside binary expressions (like && and ||), which could previously generate incorrect code. Normal property access conversions (e.g., a && a.b → a?.b) still work correctly.

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Oct 15, 2025
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Oct 15, 2025
@emiedonmokumo
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

Convert to optional chain expression action creates incorrect code

2 participants