Skip to content

Thrown types use "convertible to any Error" instead of "conforms to Error" #69379

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

Conversation

DougGregor
Copy link
Member

Allow one to throw a type that is convertible to any Error even if it doesn't conform to the Error protocol, e.g., an existential type like any Codable & Error.

…rror"

Allow one to throw a type that is convertible to `any Error` even if it
doesn't conform to the `Error` protocol, e.g., an existential type like
`any Codable & Error`.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/llvm-project#7671

@swift-ci please test Windows

@DougGregor
Copy link
Member Author

TSan data race.... can't possibly be related here.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test macOS

@DougGregor DougGregor merged commit 91c75a2 into swiftlang:main Oct 25, 2023
@DougGregor DougGregor deleted the typed-throws-convert-to-any-error branch October 25, 2023 07:15
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