From 96beb108a57f24c8476ae1f309239270772b2940 Mon Sep 17 00:00:00 2001 From: Brandon Williams <135203+mbrandonw@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:50:19 -0500 Subject: [PATCH] Fix compilation error in 5.9 (#119) * Fix compilation error in 5.9 * fix --- .github/workflows/ci.yml | 5 ++++- Sources/IssueReporting/Internal/SwiftTesting.swift | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aa99dd..600079d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/Sources/IssueReporting/Internal/SwiftTesting.swift b/Sources/IssueReporting/Internal/SwiftTesting.swift index 9604bbb..53b2708 100644 --- a/Sources/IssueReporting/Internal/SwiftTesting.swift +++ b/Sources/IssueReporting/Internal/SwiftTesting.swift @@ -313,8 +313,8 @@ func _currentTestIsNotNil() -> Bool { } private struct Confirmation: Sendable { - protocol ExpectedCount: Sendable, RangeExpression {} } + private protocol ExpectedCount: Sendable, RangeExpression {} private struct Expectation: Sendable { var evaluatedExpression: __Expression @@ -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