Skip to content

[5.7] Existential Types Cannot Satisfy Superclass Bounds #58640

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
May 4, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented May 3, 2022

Cherry picked from #58624


It is not the case that any P satisfies a class bound
even if the existential is a composition with an exact
match to the class bound. The resulting existential box
must be opened as the exact class type before this conversion
can succeed.

This appears to be a regression from Swift 5.1, which was the last
Swift compiler that banned this typing rule.

rdar://92358570

It is not the case that `any P` satisfies a class bound
even if the existential is a composition with an exact
match to the class bound. The resulting existential box
must be opened as the exact class type before this conversion
can succeed.

This appears to be a regression from Swift 5.1, which was the last
Swift compiler that banned this typing rule.

rdar://92358570
@CodaFi CodaFi requested a review from xedin May 3, 2022 16:19
@CodaFi CodaFi requested a review from a team as a code owner May 3, 2022 16:19
@CodaFi
Copy link
Contributor Author

CodaFi commented May 3, 2022

@swift-ci test

@xedin xedin requested a review from hborla May 3, 2022 16:22
@hborla hborla merged commit 5aa05b2 into swiftlang:release/5.7 May 4, 2022
@CodaFi CodaFi deleted the sui-generics branch May 4, 2022 14:15
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.

3 participants