Avatar
let b: @convention(block) () -> Int = { 42 } b as AnyObject === b as AnyObject // true
3:24 AM
でも
3:24 AM
import Foundation let str = "str" let b = str as NSString let c: AnyObject = b // OK
3:24 AM
ですよね?
3:24 AM
納得がいかないのは let b: @convention(block) () -> Int = { 42 } b as AnyObject === b as AnyObject // true let c: AnyObject = b // ERROR
👍 1