Xcode 11.0 compatibility issue
elenipapanik opened this issue · 3 comments
When I tried to build my application with XCode 11.0 I stumbled upon the following compile error:
Error Messages
Partial application of 'mutating' method is not allowed
Models
struct Experience {
let title: String?
let summary: String?
let company: String?
let isCurrent: Bool?
let startDate: String?
let endDate: String?
}
extension Experience: Argo.Decodable {
static func decode(_ json: JSON) -> Decoded<Experience> {
return curry(self.init)
<^> json <|?? "title"
<*> json <|?? "summary"
<*> json <|?? "company"
<*> json <|?? "current"
<*> json <|?? "start_date"
<*> json <|?? "end_date"
}
}
Argo Version
Argo 4.1.2
Any thoughts on fixing it?
Oh wild. I hope this isn't an intentional change in Swift. I haven't tried pulling Argo into Xcode 11 yet though. The fix for this might be going back to a manual create
static method that is already curried? I'd really hate to see that though. I'm tempted to see how the next few betas impact this issue before figuring out if we need a fix.
This may be fixed by this PR. It will eventually be part of 5.1 AFAICT. Could try the most recent toolchain to be sure.
I'm going to go ahead and close this due to inactivity but please feel free to reopen if this is still an issue.