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 6918a63 commit 83a6c1aCopy full SHA for 83a6c1a
test/Constraints/result_builder.swift
@@ -1424,11 +1424,16 @@ extension TestLeadingDot where Self == NoopImpl {
1424
struct NoopImpl : TestLeadingDot {
1425
}
1426
1427
+@available(SwiftStdlib 5.1, *)
1428
func testLeadingDotSyntax(v: Int) {
1429
let x: some TestLeadingDot = .test {
1430
v
1431
1432
1433
-testLeadingDotSyntax(v: -42)
1434
+if #available(SwiftStdlib 5.1, *) {
1435
+ testLeadingDotSyntax(v: -42)
1436
+} else {
1437
+ print("buildBlock: -42") // Fallback for the back deployment bots
1438
+}
1439
// CHECK: buildBlock: -42
0 commit comments