Skip to content

[Typed throws] Implement support for do throws(...) syntax #70182

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
Dec 2, 2023

Conversation

DougGregor
Copy link
Member

During the review of SE-0413, typed throws, the notion of a do throws syntax for do..catch blocks came up. Implement that syntax and semantics, as a way to explicitly specify the type of error that is thrown from the do body in do..catch statement.

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2381

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2381

@swift-ci please build toolchain

During the review of SE-0413, typed throws, the notion of a `do throws`
syntax for `do..catch` blocks came up. Implement that syntax and
semantics, as a way to explicitly specify the type of error that is
thrown from the `do` body in `do..catch` statement.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2381

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2381

@swift-ci please build toolchain

@DougGregor
Copy link
Member Author

Timeout on the Windows toolchain build. Let's try that again!

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2381

@swift-ci please build toolchain

@DougGregor DougGregor merged commit 5b4fb48 into swiftlang:main Dec 2, 2023
@DougGregor DougGregor deleted the do-throws branch December 2, 2023 22:13
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.

1 participant