-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[stdlib] SE-0061: Add Generic Result and Error Handling to autoreleas… #2384
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
…epool() Added `rethrows` and generic return type to ObjectiveC.autoreleasepool. Added tests of these new capabilities. Fixes SR-1394 and SR-842
|
LGTM for functionality. @gribozavr or @dabrahams can you review for style? |
|
@swift-ci test |
| // Using an @objc class to check that errors are retained across the pool | ||
| // boundaries. A classic crash is an error created inside a pool and then | ||
| // zombied before handling it outside the pool. | ||
| @objc class Error: NSObject, ErrorProtocol { |
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.
Please add a space before the colon.
|
@swift-ci test and merge |
|
It looks like the Linux build failed for unrelated reasons, if I'm understanding the listed results correctly. |
|
Indeed. Re-testing. |
|
@swift-ci test linux |
|
@swift-ci please smoke test OS X platform |
swiftlang#2384) * [stdlib] SE-0061: Add Generic Result and Error Handling to autoreleasepool() Added `rethrows` and generic return type to ObjectiveC.autoreleasepool. Added tests of these new capabilities. Fixes SR-1394 and SR-842 * Updated for code style review.
[pull] swiftwasm from main
Added
rethrowsand generic return type toObjectiveC.autoreleasepool.Added tests of these new capabilities.
Fixes #43454