Here is the code:
let a: String = "abc"
let b: NSString = "abc"
assert(a == b)
assert(a.hashValue == b.hashValue, "a.hashValue(\(a.hashValue)) !=
b.hashValue(\(b.hashValue))")
It fails with error:
assertion failed: a.hashValue(4799450059707601744) != b.hashValue(516202353)
Perhaps, there is an issue with the equality operator.
Alexey Komnin.
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users
