Hey! Faced a strange problem. The following code fails to compile:
protocol TestProtocol: AnyObject {
associatedtype Err: Error
}
private extension TestProtocol {
@AssociatedObject(.retain(.nonatomic))
var test: Bool = false
}
The compilation error occurs when associatedtype Err: Error is present. If I remove : Error (so it becomes just associatedtype Err), the code builds successfully.
Sadly, but the error message is not helpful:
Command EmitSwiftModule failed with a nonzero exit code