I've migrated to Swift 4 and I'm using pods.
Within my Bolts-Swift framework I'm getting expected type error.
public func continueWith<S>(_ executor: Executor = .default, continuation: @escaping ((Task) throws -> S)) -> Task<S> {
return continueWithTask(executor) { task in
let state = TaskState.fromClosure({
try continuation(task)
})
return Task<S>(state: state as! TaskState<_>) // Error with this line
}
It is expecting type Task "S" but it is returning that type? Apologies if this is a broad question but I really have no clue here.