Skip to content

[ClangImporter] Always add AnyObject constraint to generic parameters #74492

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 1 commit into from
Jun 18, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 17, 2024

: AnyObject was added only if there were no other constraints because all of them would imply it before, with introduction of Sendable this is no longer the case. Let's add AnyObject constraint unconditionally and let generic signature builder deal with the redundancy.

Resolves: rdar://127520993

@xedin xedin changed the title [ClangImporter] Always add AnyObject constraint on generic parameters [ClangImporter] Always add AnyObject constraint to generic parameters Jun 17, 2024
`: AnyObject` was added only if there were no other constraints because
all of them would imply it before, with introduction of `Sendable` this
is no longer the case. Let's add `AnyObject` constraint unconditionally
and let generic signature builder deal with the redundancy.

Resolves: rdar://127520993
@xedin
Copy link
Contributor Author

xedin commented Jun 17, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2024

@swift-ci please smoke test macOS platform

@xedin xedin merged commit 68b6c7e into swiftlang:main Jun 18, 2024
5 checks passed
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.

2 participants