func arrayRequest<T>(request: Request<T>, callback: ((result: Results<T>) -> ())) {
let parseOperation = buildRequest(request)
parseOperation.completionBlock = {
dispatch_async(dispatch_get_main_queue(), {
guard let parsedObject = parseOperation.results else {
callback(result: Results.Failure(Error.RequestError))
return
}
let results = Results.Success(parsedObject)
callback(result: callback(result: results)) //Error
})
}
}
我有错误: 无法转换'结果&lt;类型的值T&gt;'预期参数类型'结果&lt; _&gt;'
enum Results<T> {
case Failure(Error)
case Success([T]) }