Ios 非典型结果与阿拉莫菲尔结果的冲突

Ios 非典型结果与阿拉莫菲尔结果的冲突,ios,swift,alamofire,Ios,Swift,Alamofire,我在代表POST HTTP请求的协议中具有以下Swift函数: func post<T: Mappable>(url: NSURL, parameters: [String: AnyObject]?, completion: ((Result<T, APIClientError>) -> ())?) func post<T: Mappable>(url: NSURL, parameters: [String: AnyObject]?, completi

我在代表POST HTTP请求的协议中具有以下Swift函数:

func post<T: Mappable>(url: NSURL, parameters: [String: AnyObject]?, completion: ((Result<T, APIClientError>) -> ())?)
func post<T: Mappable>(url: NSURL, parameters: [String: AnyObject]?, completion: (Result<T, APIClientError> -> ())? = nil) {
    Alamofire.request(.POST, url.URLString, parameters: parameters, encoding: .JSON)
        .validate()
问题在于,Antypical的结果和Alamofire的结果之间存在冲突:

AlamofireHTTPClient.swift:21:87: 'Result' is ambiguous for type lookup in this context

如何指定要使用来自Antyptical的结果?或者您是否知道解决问题的更好方法?

您可以通过
moduleName.type
指定您所指的确切类型;在您的情况下,这将是
Result.Result
Alamofire.Result
,您可以通过
moduleName.type
指定所引用的确切类型;在您的情况下,这将是
Result.Result
Alamofire.Result