Conversation
9498dd9 to
750cf89
Compare
750cf89 to
b993486
Compare
|
How about if the value is Codable but not Hashable? These hash value must not equal to others and themselves. |
|
Looking forward to see this PR merged. |
This is not possible. If the value is Codable, then it's Hashable. AnyDecodable and AnyEncodable throw when the value is not Codable, meaning it won't reach the https://github.com/Flight-School/AnyCodable/blob/master/Sources/AnyCodable/AnyDecodable.swift#L74-L76 |
You are right. AnyEncodable, AnyDecodable and AnyCodable are implicitly require that values conform to Hashable currently. I am approving it. Let us see test results. |
|
Sorry to bother, but did the CI started? |
|
See below. |
|
I ran tests per versions on my machine and every case passed. Merging. Swift 5.1.5Swift 5.2.5Swift 5.3.3Swift 5.4.1 |
Fixes: #45