Skip to content
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

Ban Nested some Types in Existentials #58675

Merged
merged 1 commit into from
May 5, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented May 4, 2022

We would like to leave room in the language for some types in existential
constraints a la any P<some Q> to resolve as a part of the requirement
signature of a future generalized existential type. To that end, usages of
some types nested anywhere in the arguments of an existential will fail to
resolve.

rdar://92758884

@CodaFi CodaFi requested a review from rjmccall May 4, 2022 23:33
We would like to leave room in the language for `some` types in existential
constraints a la `any P<some Q>` to resolve as a part of the requirement
signature of a future generalized existential type. To that end, usages of
`some` types nested anywhere in the arguments of an existential will fail to
resolve.

rdar://92758884
@CodaFi
Copy link
Contributor Author

CodaFi commented May 5, 2022

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented May 5, 2022

@swift-ci smoke test Linux platform

@CodaFi CodaFi merged commit a7ed41d into swiftlang:main May 5, 2022
@CodaFi CodaFi deleted the some-nest-of-vipers branch May 5, 2022 17:05
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.

1 participant