Skip to content

Commit 68f3ed6

Browse files
committed
fix: fix Swift 6.1 build issue
1 parent d75f13b commit 68f3ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Mockable/Mocker/Mocker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Mocker<Service: MockableService>: @unchecked Sendable {
3434
/// Array to store invocations of members.
3535
private lazy var invocations = LockIsolated<[Member]>([]) { newValue in
3636
Task {
37-
#if swift(>=6)
37+
#if swift(>=6.0) && !swift(>=6.1)
3838
self.invocationsSubject.send(newValue)
3939
#else
4040
await self.invocationsSubject.send(newValue)

0 commit comments

Comments
 (0)