I have the following line of code from swift 1.1
.
Now that I've upgraded (currently only to swift 1.2
) I'm getting a runtime error
on the following line:
let myBool = parseObject["myBoolField"] as? Bool ?? false
Has something changed with newer versions of Swift that change the way you use in casts?
Shouldn't this line never fail and always at least resolve to myBool = false
?