Skip to content

Commit

Permalink
Merge pull request #7 from mentalflux/protocol-witness-table-fix
Browse files Browse the repository at this point in the history
Add explicit CasePathable conformance to AllComposedCases.ScopedState
  • Loading branch information
scogeo committed Jun 26, 2024
2 parents f4865e5 + 99a7757 commit b815408
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Sources/TCAComposerMacros/Composer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ struct Composer {
}
@CasePathable
\(raw: composition.accessModifier)enum ScopedState {
\(raw: composition.accessModifier)enum ScopedState: CasePaths.CasePathable {
\(raw: decls.map(\.description).joined(separator: "\n"))
}
}
Expand Down
48 changes: 24 additions & 24 deletions TCAComposer.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "e593aba2c6222daad7c4f2732a431eed2c09bb07",
"version" : "1.3.0"
"revision" : "b871e5ed11a23e52c2896a92ce2c829982ff8619",
"version" : "1.4.2"
}
},
{
Expand All @@ -32,17 +32,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections",
"state" : {
"revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb",
"version" : "1.1.0"
"revision" : "ee97538f5b81ae89698fd95938896dec5217b148",
"version" : "1.1.1"
}
},
{
"identity" : "swift-composable-architecture",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-composable-architecture",
"state" : {
"revision" : "115fe5af41d333b6156d4924d7c7058bc77fd580",
"version" : "1.9.2"
"revision" : "1f952d8c69ace5e53bb69a218e6ed00e03a4695c",
"version" : "1.11.2"
}
},
{
Expand All @@ -59,62 +59,62 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : {
"revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d",
"version" : "1.2.1"
"revision" : "f01efb26f3a192a0e88dcdb7c3c391ec2fc25d9c",
"version" : "1.3.0"
}
},
{
"identity" : "swift-dependencies",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : {
"revision" : "d3a5af3038a09add4d7682f66555d6212058a3c0",
"version" : "1.2.2"
"revision" : "00bc30ca03f98881329fab7f1bebef8eba472596",
"version" : "1.3.1"
}
},
{
"identity" : "swift-identified-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-identified-collections",
"state" : {
"revision" : "d1e45f3e1eee2c9193f5369fa9d70a6ddad635e8",
"version" : "1.0.0"
"revision" : "2f5ab6e091dd032b63dacbda052405756010dc3b",
"version" : "1.1.0"
}
},
{
"identity" : "swift-macro-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-macro-testing",
"state" : {
"revision" : "90e38eec4bf661ec0da1bbfd3ec507d0f0c05310",
"version" : "0.3.0"
"revision" : "851c8b6bde2000d8051dc9aca1efee04dcc37411",
"version" : "0.4.1"
}
},
{
"identity" : "swift-perception",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-perception",
"state" : {
"revision" : "a5bb578d963fcdbffe4fd56c92b2e222f5b02c8a",
"version" : "1.1.2"
"revision" : "d3ab98dc2887d1cc3bed676f6fa354da4cb22b3c",
"version" : "1.2.4"
}
},
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "5b0c434778f2c1a4c9b5ebdb8682b28e84dd69bd",
"version" : "1.15.4"
"revision" : "8ddd519780452729c6634ad6bd0d2595938e9ea3",
"version" : "1.16.1"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax",
"state" : {
"revision" : "08a2f0a9a30e0f705f79c9cfaca1f68b71bdc775",
"version" : "510.0.0"
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
Expand All @@ -131,17 +131,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swiftui-navigation.git",
"state" : {
"revision" : "d9e72f3083c08375794afa216fb2f89c0114f303",
"version" : "1.2.1"
"revision" : "b7c9a79f6f6b1fefb87d3e5a83a9c2fe7cdc9720",
"version" : "1.5.0"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "b13b1d1a8e787a5ffc71ac19dcaf52183ab27ba2",
"version" : "1.1.1"
"revision" : "6f30bdba373bbd7fbfe241dddd732651f2fbd1e2",
"version" : "1.1.2"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
}
}
Expand Down Expand Up @@ -180,7 +180,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case counter(store: Store<Counter.State, Counter.Action>)
}
}
Expand Down Expand Up @@ -276,7 +276,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case counter(SomeState)
}
}
Expand Down Expand Up @@ -375,7 +375,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case counter(SomeState, other: SomeOtherState)
}
}
Expand Down Expand Up @@ -491,7 +491,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case detail(store: Store<SyncUpDetail.State, SyncUpDetail.Action>)
case meeting(Meeting, syncUp: SyncUp)
case record(store: Store<RecordMeeting.State, RecordMeeting.Action>)
Expand Down Expand Up @@ -588,7 +588,7 @@ final class ComposeNavigationPathMacroTests: XCTestCase {
}
@CasePathable
public enum ScopedState {
public enum ScopedState: CasePaths.CasePathable {
case counter(store: Store<Counter.State, Counter.Action>)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class EnumReducerMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
}
}
Expand Down Expand Up @@ -153,7 +153,7 @@ final class EnumReducerMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case counter1(store: Store<Counter.State, Counter.Action>)
case counter2(store: Store<Counter.State, Counter.Action>)
case someState(String)
Expand Down Expand Up @@ -266,7 +266,7 @@ final class EnumReducerMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case counter1(store: Store<Counter.State, Counter.Action>)
case counter2(store: Store<Counter.State, Counter.Action>)
case someState(String)
Expand Down Expand Up @@ -342,7 +342,7 @@ final class EnumReducerMacroTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case tupleStateDefault(Int, String)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ final class EnumeratedReducerOptionTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case emptyState
}
}
Expand Down Expand Up @@ -136,7 +136,7 @@ final class EnumeratedReducerOptionTests: XCTestCase {
}
@CasePathable
enum ScopedState {
enum ScopedState: CasePaths.CasePathable {
case feature(store: Store<Feature.State, Feature.Action>)
}
}
Expand Down

0 comments on commit b815408

Please sign in to comment.