Revert "Name and label changes for closure parameters (for review only) (#2981)"

This reverts commit 18406900ba.
This commit is contained in:
Michael Gottesman
2016-07-15 19:45:26 -07:00
parent ac5a9789e7
commit 40e1991e12
65 changed files with 350 additions and 382 deletions

View File

@@ -144,12 +144,12 @@ func randomArray() -> A<Int> {
Algorithm.test("invalidOrderings") {
withInvalidOrderings {
var a = randomArray()
_blackHole(a.sorted(by: $0))
_blackHole(a.sorted(isOrderedBefore: $0))
}
withInvalidOrderings {
var a: A<Int>
a = randomArray()
_ = a.partition(by: $0)
_ = a.partition(isOrderedBefore: $0)
}
/*
// FIXME: Disabled due to <rdar://problem/17734737> Unimplemented:
@@ -188,7 +188,7 @@ func makeQSortKiller(_ len: Int) -> [Int] {
var ary = [Int](repeating: 0, count: len)
var ret = [Int](repeating: 0, count: len)
for i in 0..<len { ary[i] = i }
ary = ary.sorted(by: Compare)
ary = ary.sorted(isOrderedBefore: Compare)
for i in 0..<len {
ret[ary[i]] = i
}