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.
1 parent 12dce85 commit 2507a31Copy full SHA for 2507a31
validation-test/Sema/type_checker_perf/slow/mixed_string_array_addition.swift
@@ -0,0 +1,12 @@
1
+// RUN: %target-typecheck-verify-swift -swift-version 5 -solver-expression-time-threshold=1
2
+
3
+func method(_ arg: String, body: () -> [String]) {}
4
5
+func test(str: String, properties: [String]) {
6
+ // expected-error@+1 {{the compiler is unable to type-check this expression in reasonable time}}
7
+ method(str + "" + str + "") {
8
+ properties.map { param in
9
+ "" + param + "" + param + ""
10
+ } + [""]
11
+ }
12
+}
0 commit comments