Skip to content

Commit

Permalink
Fix compilation error in 5.9 (#119)
Browse files Browse the repository at this point in the history
* Fix compilation error in 5.9

* fix
  • Loading branch information
mbrandonw authored Aug 20, 2024
1 parent 63e543c commit 96beb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:
config:
- debug
- release
xcode:
- 15.4
- 15.2
name: macOS
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
run: make test-${{ matrix.config }}

Expand Down
4 changes: 2 additions & 2 deletions Sources/IssueReporting/Internal/SwiftTesting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ func _currentTestIsNotNil() -> Bool {
}

private struct Confirmation: Sendable {
protocol ExpectedCount: Sendable, RangeExpression<Int> {}
}
private protocol ExpectedCount: Sendable, RangeExpression<Int> {}

private struct Expectation: Sendable {
var evaluatedExpression: __Expression
Expand All @@ -331,7 +331,7 @@ func _currentTestIsNotNil() -> Bool {
case unconditional
indirect case expectationFailed(_ expectation: Expectation)
indirect case confirmationMiscounted(actual: Int, expected: Int)
indirect case confirmationOutOfRange(actual: Int, expected: any Confirmation.ExpectedCount)
indirect case confirmationOutOfRange(actual: Int, expected: any ExpectedCount)
indirect case errorCaught(_ error: any Error)
indirect case timeLimitExceeded(timeLimitComponents: (seconds: Int64, attoseconds: Int64))
case knownIssueNotRecorded
Expand Down

0 comments on commit 96beb10

Please sign in to comment.