Skip to content

Commit 3105ef9

Browse files
author
Dave Abrahams
committed
[stdlib] Fixing a duplicate declaration bug
1 parent 0d68b3a commit 3105ef9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/public/core/EmptyCollection.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public struct EmptyIterator<Element> : IteratorProtocol, Sequence {
3434
public struct EmptyCollection<Element> :
3535
RandomAccessCollection, MutableCollection, Equatable
3636
{
37-
public typealias Indices = CountableRange<Int>
38-
3937
/// A type that represents a valid position in the collection.
4038
///
4139
/// Valid indices consist of the position of every element and a
@@ -150,10 +148,6 @@ public struct EmptyCollection<Element> :
150148
}
151149

152150
public typealias Indices = CountableRange<Int>
153-
154-
public var indices: CountableRange<Int> {
155-
return startIndex..<endIndex
156-
}
157151
}
158152

159153
public func == <Element>(

0 commit comments

Comments
 (0)