Files
swift-composable-architectu…/Tests/ComposableArchitectureTests/EnumReducerMacroTests.swift
Stephen Celis bc8f27b1d0 Swift Language Support: Drop <5.9 (#3185)
* Swift Language Support: Drop <5.9

* wip

* wip

* wip

* wip

* wip
2024-06-19 07:40:15 -07:00

41 lines
761 B
Swift

import ComposableArchitecture
private enum TestEnumReducer_CompilerDirective {
@Reducer
struct ChildFeature {}
enum Options {}
@Reducer
enum Feature {
case child(ChildFeature)
#if os(macOS)
case mac(ChildFeature)
case macAlert(AlertState<Options>)
#elseif os(iOS)
case phone(ChildFeature)
#else
case other(ChildFeature)
case another
#endif
#if DEBUG
#if INNER
case inner(ChildFeature)
case innerDialog(ConfirmationDialogState<Options>)
#endif
#endif
}
}
private enum TestEnumReducer_DefaultInitializer {
@Reducer
struct Feature {
let context: String
}
@Reducer
enum Destination1 {
case feature1(Feature = Feature(context: "context"))
}
}