Skip to content

Parse suppressed-conformance constraints in expressions and validate them #72748

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

Conversation

DougGregor
Copy link
Member

Ensure that we're properly parsing suppressed-conformance constraints in expression contents and in metatypes. This allows types like any ~Copyable in expression context as well as types like any ~Copyable.Type.

While we're here, ensure that existentials that involve suppressed-conformance constraints are spelled with any.

Fixes rdar://123728228.

…them

Ensure that we're properly parsing suppressed-conformance constraints
in expression contents and in metatypes. This allows types like `any
~Copyable` in expression context as well as types like `any
~Copyable.Type`.

While we're here, ensure that existentials that involve
suppressed-conformance constraints are spelled with `any`.

Fixes rdar://123728228.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2580

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2580

@swift-ci please smoke test

1 similar comment
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2580

@swift-ci please smoke test

@DougGregor DougGregor merged commit 859d325 into swiftlang:main Apr 2, 2024
@DougGregor DougGregor deleted the suppressed-existentials-parsing branch April 2, 2024 02: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.

1 participant