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
Consider the following protocols:
// sourcery: AutoMockable protocol SomeType { associatedtype List: ListType where List.Element == Domain } // sourcery: AutoMockable protocol ListType { associatedtype Element: Identifiable func doStuff() -> [Element] } struct Domain: Identifiable { var id: Int var name: String }
The generated SomeType is missing the constraint, so the code won't build:
SomeType
class SomeTypeMock< List: ListType>: SomeType { }
The correct version is:
class SomeTypeMock< List: ListType>: SomeType where List.Element == Domain { }
This happens with the latest AutoMockable.stencil and sourcery 2.2.6
AutoMockable.stencil
2.2.6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following protocols:
The generated
SomeType
is missing the constraint, so the code won't build:The correct version is:
This happens with the latest
AutoMockable.stencil
and sourcery2.2.6
The text was updated successfully, but these errors were encountered: