You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before this change, Sourcery was correctly generating Equatable conformances in my project, however, after updating to 0.14.0, which is after this change, it can no longer build the project.
The error given: Function cannot be declared public because its parameter uses an internal type.
This is due to the type that is being used with AutoEquatable is internal.
Was this change to public definitely required, as it is perfectly legal to have an equatable implementation in your type that isn't public.
class MyClass: AutoEquatable {
let field0: String
let field1: String
}
A recent PR changed the access level on the Equatable conformance in AutoEquatable to public.
#616
Before this change, Sourcery was correctly generating Equatable conformances in my project, however, after updating to 0.14.0, which is after this change, it can no longer build the project.
The error given: Function cannot be declared public because its parameter uses an internal type.
This is due to the type that is being used with AutoEquatable is internal.
Was this change to public definitely required, as it is perfectly legal to have an equatable implementation in your type that isn't public.
Before change
Builds successfully.
After change
Fails to build
Alternative
This alternative also matches the Equatable docs:
https://developer.apple.com/documentation/swift/equatable
The text was updated successfully, but these errors were encountered: