We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f81d54 + a406866 commit d02411fCopy full SHA for d02411f
validation-test/Sema/type_checker_perf/fast/rdar22770433.swift renamed to validation-test/Sema/type_checker_perf/slow/rdar22770433.swift
@@ -3,6 +3,7 @@
3
4
func test(n: Int) -> Int {
5
return n == 0 ? 0 : (0..<n).reduce(0) {
6
- ($0 > 0 && $1 % 2 == 0) ? (($0 + $1) / ($1 - $0)) : $0
+ // expected-error@-1 {{reasonable time}}
7
+ ($0 > 0 && $1 % 2 == 0) ? ((($0 + $1) - ($0 + $1)) / ($1 - $0)) + (($0 + $1) / ($1 - $0)) : $0
8
}
9
0 commit comments