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 2c245b3 commit 6eb94ceCopy full SHA for 6eb94ce
test/attr/attr_autoclosure.swift
@@ -203,3 +203,10 @@ func rdar_20591571() {
203
withoutActuallyEscaping(fn) { (_: () -> Int) in } // Ok
204
}
205
206
+
207
+// rdar://problem/30906031 - [SR-4188]: withoutActuallyEscaping doesn't accept an @autoclosure argument
208
+func rdar_30906031(in arr: [Int], fn: @autoclosure () -> Int) -> Bool {
209
+ return withoutActuallyEscaping(fn) { escapableF in // Ok
210
+ arr.lazy.filter { $0 >= escapableF() }.isEmpty
211
+ }
212
+}
0 commit comments