Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 {
}
like image 590
Jason Hocker Avatar asked Jul 18 '16 21:07

Jason Hocker


1 Answers

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

Try this:

if let errorValue = error, errorValue.code == ErrorNotExist {
}
like image 196
OOPer Avatar answered Nov 02 '22 09:11

OOPer