blob: 6b7fa19f0cb2b77c93563e1c8a1372030c5a295c [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -swift-version 5 -solver-expression-time-threshold=1
func method(_ arg: String, body: () -> [String]) {}
func test(str: String, properties: [String]) {
// expected-error@+1 {{the compiler is unable to type-check this expression in reasonable time}}
method(str + "" + str + "") {
properties.map { param in
"" + param + "" + param + ""
} + [""]
}
}