pointfreeco/swift-composable-architecture

Composable 1.8.1 - Destination with only AlertState generates empty body

Closed this issue · 1 comments

Description

Following Destination will generate an empty reducer body that causes a compile failure


@Reducer
public struct Feature {
  @Reducer
  public enum Destination {
    case alert(AlertState<AlertAction>)
    
    public enum AlertAction {
      
    }
  }
}

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.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

The Composable Architecture version information

1.8.1

Destination operating system

No response

Xcode version information

No response

Swift Compiler version information

No response

This has been fixed in 1.8.2.