Skip to content

Commit fc32317

Browse files
committed
Also gate the test to Swift 6
1 parent 4708c9f commit fc32317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/ConcurrencyExtrasTests/ResultTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ final class ResultTests: XCTestCase {
3636
}
3737
}
3838

39+
#if compiler(>=6)
3940
func testTypedThrows() async throws {
4041
do {
4142
let res = await Result { () async throws(SomeError) -> Int in try await g(0) }
@@ -46,4 +47,5 @@ final class ResultTests: XCTestCase {
4647
}
4748
}
4849
}
50+
#endif
4951
}

0 commit comments

Comments
 (0)