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 23cd3d6 + e4f0f78 commit f055791Copy full SHA for f055791
validation-test/Sema/type_checker_perf/slow/rdar54580427.swift
@@ -0,0 +1,23 @@
1
+// FIXME: This should be linear instead of exponential.
2
+// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumLeafScopes --invert-result %s
3
+// REQUIRES: OS=macosx
4
+// REQUIRES: asserts
5
+
6
+enum Val {
7
+ case d([String: Val])
8
+ case f(Double)
9
+}
10
11
+struct X {
12
+ var x : Float
13
14
15
+extension X {
16
+ func val() -> Val {
17
+ return Val.d([
18
+%for i in range(0, N):
19
+ "x": .f(Double(x)),
20
+%end
21
+ ])
22
+ }
23
0 commit comments