Skip to content

Commit 1946204

Browse files
another fix
1 parent 5b7580d commit 1946204

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/VariableLengthArray/VLArray.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ extension VLArray where Element: ~Copyable {
7171
/// // c == MyFancyCollection([2, 4, 6, 8, 10])
7272
@inlinable
7373
public var indices: Range<Index> {
74+
#if compiler(>=6.2)
7475
_storage.indices
76+
#else
77+
startIndex..<endIndex
78+
#endif
7579
}
7680

7781
/// Returns the position immediately after the given index.

0 commit comments

Comments
 (0)