pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
12.61k stars 1.46k forks source link

Composable 1.8.1 - Destination with only AlertState generates empty body #2829

Closed jaanussiim closed 9 months ago

jaanussiim commented 9 months ago

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

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

mbrandonw commented 9 months ago

This has been fixed in 1.8.2.