Skip to content

Conversation

@tshortli
Copy link
Contributor

@tshortli tshortli commented Oct 27, 2025

Module qualifying a protocol name in an inheritance clause should suppress retroactive conformance diagnostics for the protocol and any protocols it inherits from, just like adding the @retroactive attribute. Fixes a regression in Swift 6.2 introduced by #81576.

Resolves rdar://162295268 and #85153.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@slavapestov
Copy link
Contributor

Oops, thanks!

…ion.

Module qualifying a protocol name in an inheritance clause should suppress
retroactive conformance diagnostics for the protocol and any protocols it
inherits from, just like adding the `@retroactive` attribute. Fixes a
regression in Swift 6.2 introduced by
swiftlang#81576.

Resolves rdar://162295268 and swiftlang#85153.
@tshortli tshortli force-pushed the suppress-inherited-retroactive-conformance-diags-with-module-qualification branch from 4d78a71 to 65a3b88 Compare October 27, 2025 16:20
@tshortli tshortli enabled auto-merge October 27, 2025 16:21
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

@tshortli tshortli merged commit 51e03a7 into swiftlang:main Oct 28, 2025
3 checks passed
@tshortli tshortli deleted the suppress-inherited-retroactive-conformance-diags-with-module-qualification branch October 28, 2025 02:58
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.

Swift 6.2 emits spurious retroactive conformance warnings that should be suppressed

3 participants