Avatar
omochimetaru 2/3/2021 7:36 AM
@swift-5.3.3 @swift-5.4.3 func toAny<X>(_ x: X) -> Any { x as Any } let s = "foo" let os = Optional(s) let a1 = toAny(s) as! AnyHashable let a2 = toAny(os) as! AnyHashable print(a1 == a2) (edited)