-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update to Swift 4 #1022
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
Update to Swift 4 #1022
Conversation
a843648
to
939d2fc
Compare
4c7a1b9
to
9517d5e
Compare
Are we good to go on this one? |
No there are still a few closure issues that popped up. I saw that some of SE-110 was reverted but I dont think it has been fully done. I will do a quick test and see what is still broken |
There were some changes still needed but mostly it was listing the exact number of arguments before The PR for the rollback of SE110 is swiftlang/swift#10414 |
@parkera If you are happy with the closure changes I think this is good to go |
@@ -109,16 +109,16 @@ open class NotificationQueue: NSObject { | |||
var predicate: (NSNotificationListEntry) -> Bool | |||
switch coalesceMask { | |||
case [.onName, .onSender]: | |||
predicate = { (entryNotification, _) in | |||
return _SwiftValue.store(notification.object) !== _SwiftValue.store(entryNotification.object) || notification.name != entryNotification.name | |||
predicate = { entry in |
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.
Could this one have remained as previous with the SE-110 revert?
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.
Unfortunately these three still gave the error 'does not support destructuring' even after I checked it with the latest compiler, but it was the only ones.
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.
Maybe we should follow up on that separately but it shouldn't hold this up.
One small question but otherwise looks good |
@swift-ci test and merge |
Changes only compatible with swift 4.
Depends on:
#995(but requires SE-110 to be reverted)#1023#1024