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
The case is pretty simple. The error occurs if you have nested macro-generated enum reducer (e.g. Feature1) in another macro-generated enum reducer (.e.g. Feature2).
Looks that issue occurs since Reducer macro doesn't take into account that macro-generated enum Reducers don't have inits.
Checklist
I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
If possible, I've reproduced the issue using the main branch of this package.
The macro has no knowledge of what the type of reducer being fed to a case is, so outside the default, you must specify the exact reducer kind and how to construct it using a default argument:
Description
The case is pretty simple. The error occurs if you have nested macro-generated enum reducer (e.g. Feature1) in another macro-generated enum reducer (.e.g. Feature2).
Looks that issue occurs since Reducer macro doesn't take into account that macro-generated enum Reducers don't have inits.
Checklist
main
branch of this package.Expected behavior
No error occurs.
Actual behavior
Compiler reports an error:
'Type' cannot be constructed because it has no accessible initializers
Steps to reproduce
See the code below.
The Composable Architecture version information
1.10.2
Destination operating system
No response
Xcode version information
Version 15.3 (15E204a)
Swift Compiler version information
The text was updated successfully, but these errors were encountered: