我正在尝试声明类型为 AWSTaskCompletionSource
的变量,但我有 `
Generic parameter 'ResultType' could not be inferred
请看截图
这与 Swift 3 有关系吗?
最佳答案
如错误消息所述,泛型类型需要显式声明,如下所示:
let passwordAuthenticationCompletion: AWSTaskCompletionSource<AWSCognitoIdentityPasswordAuthenticationDetails> = AWSTaskCompletionSource()
关于ios - AWSTaskCompletion() 中的通用参数 'ResultType' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40106004/