xcode 8 beta 3: Expected ',' joining parts of a multi-clause condition

爷,独闯天下 提交于 2020-01-08 21:49:07

问题


Getting a new warning in xcode 8 beta 3. What is wrong with this syntax, or is there a bug in xcode?

SwiftyJSON.swift:772:35: Expected ',' joining parts of a multi-clause condition

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

回答1:


It seems this feature has been included: 0099-conditionclauses.md

Try this:

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


来源:https://stackoverflow.com/questions/38446598/xcode-8-beta-3-expected-joining-parts-of-a-multi-clause-condition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!