草庐IT

swift - xcode 8 测试版 3 : Expected ',' joining parts of a multi-clause condition

coder 2023-07-14 原文

在 xcode 8 beta 3 中收到新警告。此语法有什么问题,还是 xcode 中存在错误?

SwiftyJSON.swift:772:35: 预期 ',' 连接多子句条件的部分

if let errorValue = error where errorValue.code == ErrorNotExist {
}

最佳答案

似乎已包含此功能: 0099-conditionclauses.md

试试这个:

if let errorValue = error, errorValue.code == ErrorNotExist {
}

关于swift - xcode 8 测试版 3 : Expected ',' joining parts of a multi-clause condition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38446598/

有关swift - xcode 8 测试版 3 : Expected ',' joining parts of a multi-clause condition的更多相关文章

随机推荐