Skip to content

Take 2 of “[SDK] Fix multiple issues with Swift KVO” #22311

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

Merged
merged 1 commit into from
Feb 2, 2019

Conversation

millenomi
Copy link
Contributor

This reproposes @lilyball’s fixes in #20103 while adding her fix to ensure observations are removed before observed objects in 32-bit testing.

This reproposes @lilyball’s fixes in swiftlang#20103 while adding her fix to ensure observations are removed before observed objects in 32-bit testing.
@millenomi
Copy link
Contributor Author

@swift-ci please test

print("keyPathsAffectingValue: key == \\.name:", key == \Target2.name)
withExtendedLifetime(Dummy()) { (dummy) in
_ = dummy.observe(\.name) { (_, _) in }
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 lines have hard tabs instead of spaces.

print("automaticallyNotifiesObservers: key == \\.name:", key == \Target2.name)
withExtendedLifetime(Dummy()) { (dummy) in
_ = dummy.observe(\.name) { (_, _) in }
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 lines have hard tabs instead of spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

… one day, humanity will solve the problem of varying configurations between hosts and contexts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I will wait for testing to end before adding a fix.)

@millenomi
Copy link
Contributor Author

(It takes forever, but I want to make sure no platform is broken.)

@millenomi millenomi merged commit 337904f into swiftlang:master Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants