Skip to content

Commit 96beb10

Browse files
authored
Fix compilation error in 5.9 (#119)
* Fix compilation error in 5.9 * fix
1 parent 63e543c commit 96beb10

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ jobs:
1919
config:
2020
- debug
2121
- release
22+
xcode:
23+
- 15.4
24+
- 15.2
2225
name: macOS
2326
runs-on: macos-14
2427
steps:
2528
- uses: actions/checkout@v4
2629
- name: Select Xcode
27-
run: sudo xcode-select -s /Applications/Xcode_15.4.app
30+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2831
- name: Run tests
2932
run: make test-${{ matrix.config }}
3033

Sources/IssueReporting/Internal/SwiftTesting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ func _currentTestIsNotNil() -> Bool {
313313
}
314314

315315
private struct Confirmation: Sendable {
316-
protocol ExpectedCount: Sendable, RangeExpression<Int> {}
317316
}
317+
private protocol ExpectedCount: Sendable, RangeExpression<Int> {}
318318

319319
private struct Expectation: Sendable {
320320
var evaluatedExpression: __Expression
@@ -331,7 +331,7 @@ func _currentTestIsNotNil() -> Bool {
331331
case unconditional
332332
indirect case expectationFailed(_ expectation: Expectation)
333333
indirect case confirmationMiscounted(actual: Int, expected: Int)
334-
indirect case confirmationOutOfRange(actual: Int, expected: any Confirmation.ExpectedCount)
334+
indirect case confirmationOutOfRange(actual: Int, expected: any ExpectedCount)
335335
indirect case errorCaught(_ error: any Error)
336336
indirect case timeLimitExceeded(timeLimitComponents: (seconds: Int64, attoseconds: Int64))
337337
case knownIssueNotRecorded

0 commit comments

Comments
 (0)