[SR-15049] async let and @rethrows protocol functions don't work together #57376
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Environment
Using Xcode V13 beta 4
Additional Detail from JIRA
md5: c534d42e41bdbf13e3d2e82e17ba9ad5
Issue Description:
The following code generates the compile error "Call can throw, but it is executed in a non-throwing autoclosure".
This appears to be caused by `AsyncSequence.reduce` being tagged rethrows. If you change it to throws there is no compile error. Shouldn't the async let also work for functions tagged as rethrows?
I have managed to reduce the issue down to the following. With the following protocol and struct
The following code will generate the error "Call can throw, but it is executed in a non-throwing autoclosure".
The text was updated successfully, but these errors were encountered: