AWSTaskCompletion() 中的通用参数 'ResultType' 错误
Generic parameter 'ResultType' error in AWSTaskCompletion()
我正在尝试声明类型为 AWSTaskCompletionSource
的变量,但我有 `
Generic parameter 'ResultType' could not be inferred
请看截图
这跟Swift3有关系吗?
如错误消息所述,泛型类型需要显式声明,如下所示:
let passwordAuthenticationCompletion: AWSTaskCompletionSource<AWSCognitoIdentityPasswordAuthenticationDetails> = AWSTaskCompletionSource()
我正在尝试声明类型为 AWSTaskCompletionSource
的变量,但我有 `
Generic parameter 'ResultType' could not be inferred
请看截图
这跟Swift3有关系吗?
如错误消息所述,泛型类型需要显式声明,如下所示:
let passwordAuthenticationCompletion: AWSTaskCompletionSource<AWSCognitoIdentityPasswordAuthenticationDetails> = AWSTaskCompletionSource()