Skip to content

Commit 17dc7a7

Browse files
committed
Include func g in ifdef
1 parent 541a1bb commit 17dc7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/ConcurrencyExtrasTests/ResultTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ final class ResultTests: XCTestCase {
2828
}
2929
}
3030

31+
#if compiler(>=6)
3132
func g(_ value: Int) async throws(SomeError) -> Int {
3233
if value == 42 {
3334
return 42
@@ -36,7 +37,6 @@ final class ResultTests: XCTestCase {
3637
}
3738
}
3839

39-
#if compiler(>=6)
4040
func testTypedThrows() async throws {
4141
do {
4242
let res = await Result { () async throws(SomeError) -> Int in try await g(0) }

0 commit comments

Comments
 (0)