-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix hash/isEqual interop conditionals, update tests #71852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test |
// Legacy behavior: Equatable in Swift => ObjC hashes with identity | ||
TestSwiftObjectNSObjectDefaultHashValue(e) | ||
let msg = "Obj-C `-hash` ... type `SwiftObjectNSObject.\(type(of: e))` ... Equatable but not Hashable\n" | ||
fputs(msg, stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover debugging stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alas, no. Maybe I should comment it a bit more, though.
There's some FileCheck stuff here to verify that the runtime is really emitting some warning logs for some of these cases. So when we don't take those new paths, we have to emit a fake log message to make FileCheck happy. Maybe there's a better way to do this....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, I didn't realize FileCheck was involved in this one. Makes sense. I think the alternative would be to use --check-prefix
to check for different things in different contexts, but that probably wouldn't be an improvement here.
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
Github PR swiftlang#71620 mixed up one of the bincompat conditionals. It also had some errors in the tests for ObjC interop. For now, this leaves the legacy behavior in place for all Apple platforms.
737c95a
to
2be0f04
Compare
@swift-ci Please test |
Github PR #71620 mixed up one of the bincompat conditionals. It also had some errors in the tests for ObjC interop.
For now, this leaves the legacy behavior in place for all Apple platforms.
Resolves rdar://123422591