Closed oronbz closed 1 month ago
This is a duplicate of:
And unfortunately a bug in Swift, not the library. As such I'm going to convert to a discussion, and I'd encourage folks encountering the issue to submit it to Apple's Swift repo. Unfortunately it doesn't look like the original report followed up with a link to an Apple issue, so I'm not sure where/if it was filed.
Description
Hi there’s an issue with Xcode16 and testing
store.receive
on acase voidResult(Result<Void, Error>)
action
, I’ve managed to reproduce it with a minimal project, and it only happens when usingResult<Void, …>
and not withResult<String, …>
. It also happens only onawait store.receive(\.voidResult.success)
and not if I omit the.success
or.failure
case path like this:await store.receive(\.voidResult)
Example Reducer:Test which fails to compile:
Error (partial):
Minimal project reproducing this (by testing - CMD+U)
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Reproducing project
https://github.com/oronbz/tca-xcode16-buildfails-voidresulttest
The Composable Architecture version information
1.15.0
Destination operating system
iOS 18
Xcode version information
Version 16.0 (16A242)
Swift Compiler version information
No response