Avatar
Kishikawa Katsumi 1/23/2020 10:57 AM
https://twitter.com/objcio/status/1219998374352629760?s=21 型推論は難しいな。間違えたわ。
// Swift Quiz // by @tammofreese func foo() throws -> Int { 0 } func foo() throws -> Int? { 1 } let a = (try? foo()) let b = (try? foo())! let result = (a == b) // What’s the value of result? (Swift 5)