Skip to content

Commit ed9e0cc

Browse files
compile fix
1 parent 2f6e295 commit ed9e0cc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Sources/VariableLengthArray/Joined.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
#if compiler(>=6.2)
3+
24
extension VLArray {
35
public struct Joined: ~Copyable, @unchecked Sendable {
46
public typealias Index = Int
@@ -123,4 +125,6 @@ extension VLArray {
123125
//public mutating func swapAt(_ i: Index, _ j: Index) {
124126
//}
125127
}
126-
}
128+
}
129+
130+
#endif

Sources/VariableLengthArray/VLArray.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ extension VLArray where Element == UInt8 {
234234
}
235235

236236
// MARK: Join
237+
#if compiler(>=6.2)
237238
extension VLArray {
238239
@inlinable
239240
public func join<let count: Int, E: Error>(
@@ -255,4 +256,5 @@ extension VLArray {
255256
try closure(&joined)
256257
}
257258
}
258-
}
259+
}
260+
#endif

0 commit comments

Comments
 (0)