Skip to content

Conversation

@tjw
Copy link
Contributor

@tjw tjw commented May 3, 2016

Added rethrows and generic return type to ObjectiveC.autoreleasepool.
Added tests of these new capabilities.

Fixes #43454

…epool()

Added `rethrows` and generic return type to ObjectiveC.autoreleasepool.
Added tests of these new capabilities.

Fixes SR-1394 and SR-842
@lattner
Copy link
Contributor

lattner commented May 4, 2016

LGTM for functionality. @gribozavr or @dabrahams can you review for style?

@tkremenek
Copy link
Member

@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 {
Copy link
Contributor

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.

@tkremenek
Copy link
Member

@swift-ci test and merge

@tjw
Copy link
Contributor Author

tjw commented May 5, 2016

It looks like the Linux build failed for unrelated reasons, if I'm understanding the listed results correctly.

@tkremenek
Copy link
Member

Indeed. Re-testing.

@tkremenek
Copy link
Member

@swift-ci test linux

@tkremenek tkremenek assigned tkremenek and unassigned dabrahams May 5, 2016
@tkremenek
Copy link
Member

@swift-ci please smoke test OS X platform

@tkremenek tkremenek merged commit 0dbeca7 into swiftlang:master May 5, 2016
lmihalkovic pushed a commit to lmihalkovic/swift that referenced this pull request May 29, 2016
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.
MaxDesiatov added a commit that referenced this pull request Apr 19, 2021
[pull] swiftwasm from main
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.

5 participants