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 713f9b7 + 4fc5830 commit aef70f0Copy full SHA for aef70f0
validation-test/Sema/type_checker_perf/fast/rdar26564101.swift renamed to validation-test/Sema/type_checker_perf/slow/rdar26564101.swift
@@ -1,8 +1,10 @@
1
-// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
+// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1 -solver-disable-shrink
2
// REQUIRES: tools-release,no_asan
3
// UNSUPPORTED: swift_test_mode_optimize_none && OS=linux-gnu
4
5
func rdar26564101(a: [Double], m: Double) -> Double {
6
- return Double(Array(0...a.count - 1).reduce(0) { $0 + $1 - m })
7
- // expected-error@-1 {{cannot convert value of type}}
+ // expected-error@+1 {{unable to type-check this expression in reasonable time}}
+ return Double(Array(0...a.count - 1).reduce(0) {
8
+ $0 + $1 - m + $0 + $1 + $0
9
+ })
10
}
0 commit comments