Skip to content

Commit b66765f

Browse files
authored
Merge pull request #1542 from hartbit/countablerange-warning
Replace the deprecated CountableRange with Range
2 parents 7d68f81 + bc54cdf commit b66765f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Basic/OrderedSet.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
public struct OrderedSet<E: Hashable>: Equatable, Collection {
1414
public typealias Element = E
1515
public typealias Index = Int
16+
#if swift(>=4.2)
17+
public typealias Indices = Range<Int>
18+
#else
1619
public typealias Indices = CountableRange<Int>
20+
#endif
1721

1822
private var array: [Element]
1923
private var set: Set<Element>

0 commit comments

Comments
 (0)