We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: c2cda0bd123ff3b431a100385c9e2cbb
Issue Description:
Based on https://forums.swift.org/t/codable-synthesis-for-enums-in-a-generic-context/50105 :
The following code works fine.
struct Container<Element> { let options: [Option] } extension Container { enum Option { case first (Element) case second (Element) } } extension Container: Equatable where Element: Equatable {} extension Container.Option: Equatable where Element: Equatable {}
However, with Xcode 13 beta, it doesn't work if you replace Equatable with Codable.
Equatable
Codable
generic enum type 'Container.Option' is ambiguous without explicit generic parameters when matching value of type 'Container<Element>.Option'
This issue doesn't happen with main so it is likely that some fix was not cherry-picked.
main
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: c2cda0bd123ff3b431a100385c9e2cbb
Issue Description:
Based on https://forums.swift.org/t/codable-synthesis-for-enums-in-a-generic-context/50105 :
The following code works fine.
However, with Xcode 13 beta, it doesn't work if you replace
Equatable
withCodable
.This issue doesn't happen with
main
so it is likely that some fix was not cherry-picked.The text was updated successfully, but these errors were encountered: