Skip to content

Sema: Allow unavailable protocol witnesses in unavailable nominals or extensions #63898

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

Conversation

tshortli
Copy link
Contributor

Resolves rdar://99451416

@tshortli tshortli force-pushed the allow-unavailable-witness-on-unavailable-type branch from e017532 to 94d1f38 Compare February 28, 2023 17:32
@tshortli tshortli force-pushed the allow-unavailable-witness-on-unavailable-type branch from 94d1f38 to 9521764 Compare February 28, 2023 21:54
@tshortli
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Change seems reasonable to me.

@tshortli
Copy link
Contributor Author

@swift-ci please test macOS

@tshortli tshortli merged commit fe8a277 into swiftlang:main Mar 1, 2023
@tshortli tshortli deleted the allow-unavailable-witness-on-unavailable-type branch March 1, 2023 04:22
tshortli added a commit to tshortli/swift that referenced this pull request Mar 22, 2023
…ances.

In swiftlang#63898 conformance requirement
typechecking was relaxed to allow unavailable decls to witness conformance
requirements as long as the conforming nominal was also unavailable. However,
only nominals that were directly marked unavailable were accepted. Nominals
that are declared in unavailable scopes should also be allowed to have
unavailable wintesses.

Resolves rdar://107052715
etcwilde pushed a commit to etcwilde/swift that referenced this pull request Apr 19, 2023
…ances.

In swiftlang#63898 conformance requirement
typechecking was relaxed to allow unavailable decls to witness conformance
requirements as long as the conforming nominal was also unavailable. However,
only nominals that were directly marked unavailable were accepted. Nominals
that are declared in unavailable scopes should also be allowed to have
unavailable wintesses.

Resolves rdar://107052715
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