You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sema: Fix effects checking of 'for await' with a concrete conformance
AsyncSequence is only polymorphic over 'throws' effects, not 'async',
because it is @rethrows and not @reasync. So the logic here was wrong,
and it would incorrectly conclude that a 'for await' with a concrete
conformance did not require the outer function to be 'async'.
Fixes rdar://problem/75436909.
func forAwaitWithConcreteType(_ seq:ThrowingAsyncSequence)throws{ // expected-note {{add 'async' to function 'forAwaitWithConcreteType' to make it asynchronous}}
81
+
fortryawaiteltin seq { // expected-error {{'async' in a function that does not support concurrency}}
0 commit comments