Skip to content

Commit 9c7e2e8

Browse files
authored
Merge pull request swiftlang#14350 from xedin/mark-22282851-as-fast-5.0
2 parents 91ceb6e + 43844de commit 9c7e2e8

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
2+
// REQUIRES: tools-release,no_asserts
3+
4+
struct S {
5+
let s: String
6+
}
7+
8+
func rdar22282851(_ a: [S]) -> [S] {
9+
let result = a.filter { $0.s == "hello" }.sorted { $0.s < $1.s || ($0.s == $1.s && $0.s < $1.s) && $0.s >= $1.s }
10+
return result
11+
}

validation-test/Sema/type_checker_perf/slow/rdar22282851.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)