问题
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