File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ final class AnyWorkflowActionTests: XCTestCase {
27
27
28
28
func testRetainsClosureActionTypeInfo( ) throws {
29
29
do {
30
- let erased = AnyWorkflowAction< ExampleWorkflow> { _ in
30
+ let erased = AnyWorkflowAction< ExampleWorkflow> { _, _ in
31
31
nil
32
32
}
33
33
@@ -37,7 +37,7 @@ final class AnyWorkflowActionTests: XCTestCase {
37
37
do {
38
38
let fileID : StaticString = #fileID
39
39
// must match line # the initializer is on
40
- let line : UInt = #line; let erased = AnyWorkflowAction< ExampleWorkflow> { _ in
40
+ let line : UInt = #line; let erased = AnyWorkflowAction< ExampleWorkflow> { _, _ in
41
41
nil
42
42
}
43
43
@@ -62,7 +62,7 @@ final class AnyWorkflowActionTests: XCTestCase {
62
62
63
63
// closure init
64
64
do {
65
- let action = AnyWorkflowAction< ExampleWorkflow> { _ in nil }
65
+ let action = AnyWorkflowAction< ExampleWorkflow> { _, _ in nil }
66
66
let erasedAgain = AnyWorkflowAction ( action)
67
67
68
68
XCTAssertEqual (
@@ -92,7 +92,7 @@ final class AnyWorkflowActionTests: XCTestCase {
92
92
let nonClosureBased = AnyWorkflowAction ( ExampleAction ( ) )
93
93
XCTAssertFalse ( nonClosureBased. isClosureBased)
94
94
95
- let closureBased = AnyWorkflowAction< ExampleWorkflow> { _ in . none }
95
+ let closureBased = AnyWorkflowAction< ExampleWorkflow> { _, _ in . none }
96
96
XCTAssertTrue ( closureBased. isClosureBased)
97
97
}
98
98
}
You can’t perform that action at this time.
0 commit comments