Issue with macro and any AsyncSequence
#312
Labels
apple bug
Something isn't working due to a bug on Apple's platforms.
any AsyncSequence
#312
Description
With
eraseToStream()
now being deprecated, I was switching my dependencies over toany AsyncSequence<Element, Failure
and found that using.never
no longer works (expected), and that switching toAsyncStream.never
causes a compiler error.It appears to be some interaction between the macro and unimplemented, as:
Without the macro
and without unimplemented
both work
but
causes a compiler error.
Also worth noting that explicitly casting
AsyncStream.never as any AsyncSequence<Int, Never>
builds, but is obviously unergonomic to cast like that in every unimplemented methodChecklist
main
branch of this package.Expected behavior
Above example compiles
Dependencies version information
1.5.2
Destination operating system
macOS 15
Xcode version information
16.1
Swift Compiler version information
The text was updated successfully, but these errors were encountered: