diff --git a/Sources/Testing/Support/Locked.swift b/Sources/Testing/Support/Locked.swift index d0edbc801..1294da195 100644 --- a/Sources/Testing/Support/Locked.swift +++ b/Sources/Testing/Support/Locked.swift @@ -44,10 +44,10 @@ struct Locked: RawRepresentable, Sendable where T: Sendable { typealias PlatformLock = SRWLOCK #elseif os(WASI) // No locks on WASI without multithreaded runtime. - typealias PlatformLock = Void + typealias PlatformLock = Never #else #warning("Platform-specific implementation missing: locking unavailable") - typealias PlatformLock = Void + typealias PlatformLock = Never #endif /// A type providing heap-allocated storage for an instance of ``Locked``.