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 1c023fd commit 863c919Copy full SHA for 863c919
validation-test/SILOptimizer/gh70234.swift
@@ -0,0 +1,12 @@
1
+// RUN: %target-swift-frontend -emit-sil -verify %s
2
+
3
+// REQUIRES: objc_interop
4
5
+import Foundation
6
7
+func mutateText(_ rawText: NSString?) -> String {
8
+ guard let text = consume rawText else {
9
+ return "text unavailable"
10
+ }
11
+ return String(text)
12
+}
0 commit comments