I tried to compile the code below in Visual Studio 2013 on the .1705 build.
The three println
lines all fails with a “Type mismatch: cannot find operator
” error.
let nilValue:Int? = nil
println("nil comparison: \(nilValue == nil)")
println("number comparison: \(nilValue == 1)")
println("unwrapped: \(nilValue == 0)")