Skip to content

[Parse]Check if unsafe is used as the condition operand in a ternary operator #81429

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 3 commits into from
May 14, 2025

Conversation

stzn
Copy link
Contributor

@stzn stzn commented May 10, 2025

Resolves #81323

It appears we forgot to check whether unsafe is used as the condition in a ternary operator.

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

Thanks!

@hamishknight
Copy link
Contributor

@swift-ci please test

@hamishknight
Copy link
Contributor

@swift-ci please test source compatibility

@hamishknight
Copy link
Contributor

6.2 cherry-pick: #81486

@hamishknight hamishknight merged commit d12cb84 into swiftlang:main May 14, 2025
7 checks passed
hamishknight added a commit to hamishknight/swift that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error: expected expression after 'unsafe'
2 participants