Swift ! operator cannot operate on expressions

Originator:kamikaze.mark
Number:rdar://17191111 Date Originated:2014-06-05
Status:Open Resolved:
Product:OS X SDK Product Version:Xcode6-beta
Classification:Serious Bug Reproducible:Always
 
let a = true, b = false
if ! (a || b) { // compile error: Unary operator cannot be separated from its operand
}

Comments

Don't put a space between ! and the expressions.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!