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 04b7201 commit 46b860bCopy full SHA for 46b860b
stdlib/public/runtime/SwiftValue.mm
@@ -305,7 +305,7 @@ - (BOOL)isEqual:(id)other {
305
}
306
307
if (![other isKindOfClass:getSwiftValueClass()]) {
308
- return self == other;
+ return NO;
309
310
311
auto selfHeader = getSwiftValueHeader(self);
@@ -314,12 +314,12 @@ - (BOOL)isEqual:(id)other {
314
auto hashableBaseType = selfHeader->getHashableBaseType();
315
if (!hashableBaseType ||
316
otherHeader->getHashableBaseType() != hashableBaseType) {
317
318
319
320
auto hashableConformance = selfHeader->getHashableConformance();
321
if (!hashableConformance) {
322
323
324
325
return swift_stdlib_Hashable_isEqual_indirect(
0 commit comments