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