Replies: 1 comment 1 reply
-
Hi @Mika5652, thanks for bringing this to our attention. We don't have a fix for this right now, though hopefully will by the time Swift 6 is officially released. In the meantime you can provide the closure manually to work around the compilation error: var saveData: @Sendable () throws(SomeClientError) -> Void = {
reportIssue(…)
throw SomeClientError()
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I wanted to try typed throws in my client using the
DependencyClient
macro. I got an error, as you can see in the following image. I am curious if a macro can even handle this conversion from any Error to a specific type. I am afraid not, but I am still not experienced with macro creation. Thanks for the response!It seems like the default value in this case works, so it's not a problem in the end.

Beta Was this translation helpful? Give feedback.
All reactions