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

BeLogical: fix retroactive conformance errors. #27

Conversation

TomerHacohen
Copy link

Fixes the warning in the new Swift version solved here:
swiftlang/swift#36068

Which is:

Extension declares a conformance of imported type 'X' to imported protocol 'Y'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future

without adding the @retroactive, which does not compile in Xcode 15.

This way, extensions that declares a conformance to a type where both are from another module will compile without warning in Xcode 16, as the conformed type is declared to be explicitly from the imported module, which suppresses the warning.

@TomerHacohen TomerHacohen force-pushed the feature/fix-retroactive-conformance-error-in-xcode16 branch from 646a66e to 15c40b9 Compare June 25, 2024 10:19
@TomerHacohen TomerHacohen deleted the feature/fix-retroactive-conformance-error-in-xcode16 branch June 26, 2024 06:13
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.

2 participants