We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6982d65 commit ef91e2eCopy full SHA for ef91e2e
stdlib/public/core/KeyPath.swift
@@ -597,7 +597,6 @@ internal enum KeyPathComponent: Hashable {
597
598
@_effects(releasenone)
599
internal func hash(into hasher: inout Hasher) {
600
- var hasher = hasher
601
func appendHashFromArgument(
602
_ argument: KeyPathComponent.ArgumentRef?
603
) {
test/stdlib/KeyPathImplementation.swift
@@ -657,7 +657,10 @@ keyPathImpl.test("equality") {
657
}
658
659
expectNotEqual(s_c_z_p_x, s_c_z_p_y)
660
+ expectNotEqual(s_c_z_p_x.hashValue, s_c_z_p_y.hashValue)
661
+
662
expectNotEqual(s_c_z_p_y, s_c_z_p_x)
663
+ expectNotEqual(s_c_z_p_y.hashValue, s_c_z_p_x.hashValue)
664
665
// Different path type
666
let s_c_z_p = ReferenceWritableKeyPath<S<S<String>>, Point>
0 commit comments