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 5e2234f + 540968a commit 4ad727eCopy full SHA for 4ad727e
validation-test/Sema/type_checker_perf/fast/rdar32221800.swift
@@ -0,0 +1,11 @@
1
+// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1 -swift-version 5 -solver-disable-shrink -disable-constraint-solver-performance-hacks -solver-enable-operator-designated-types
2
+// REQUIRES: tools-release,no_asserts
3
+
4
+func test(header_field_mark: Bool?, header_value_mark: Bool?,
5
+ url_mark: Bool?, body_mark: Bool?, status_mark: Bool?) {
6
+ assert(((header_field_mark != nil ? 1 : 0) +
7
+ (header_value_mark != nil ? 1 : 0) +
8
+ (url_mark != nil ? 1 : 0) +
9
+ (body_mark != nil ? 1 : 0) +
10
+ (status_mark != nil ? 1 : 0)) <= 1)
11
+}
0 commit comments