mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
This commit is contained in:
@@ -368,22 +368,6 @@ extension MutableCollection
|
||||
}
|
||||
}
|
||||
|
||||
% for Self in [ 'Sequence', 'MutableCollection' ]:
|
||||
extension ${Self} where Self.Iterator.Element : Comparable {
|
||||
@available(*, unavailable, renamed: "sorted")
|
||||
public func sort() -> [Iterator.Element] {
|
||||
fatalError("unavailable function can't be called")
|
||||
}
|
||||
|
||||
@available(*, unavailable, renamed: "sorted(isOrderedBefore:)")
|
||||
public func sort(
|
||||
@noescape isOrderedBefore: (Iterator.Element, Iterator.Element) -> Bool
|
||||
) -> [Iterator.Element] {
|
||||
fatalError("unavailable function can't be called")
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
extension MutableCollection
|
||||
where
|
||||
Self : RandomAccessCollection,
|
||||
|
||||
Reference in New Issue
Block a user