Not sure what I\'m doing wrong here, but here\'s the trivial code that\'s breaking:
if 10 & (1<<18) { return }
This gives me:
Unlike in C where you can write...
if (x) { }
... which is really a non-zero check:
if (x != 0) { }
You must test for a boolean condition in Swift. Add != 0 to your statement:
!= 0
if 10 & (1<<18) != 0 { return }