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 6d19bab + e8e27a7 commit a116397Copy full SHA for a116397
test/Concurrency/sendable_checking.swift
@@ -73,3 +73,13 @@ public actor MyActor: MyProto {
73
public func foo<F>(aFoo: F) async where F: Sendable { }
74
public func bar<B>(aBar: B) async where B: Sendable { }
75
}
76
+
77
+// rdar://82452688 - make sure sendable checking doesn't fire for a capture
78
+// of a value of error-type
79
+@available(SwiftStdlib 5.1, *)
80
+func f() async {
81
+ let n = wobble() // expected-error{{cannot find 'wobble' in scope}}
82
+ @Sendable func nested() {
83
+ n.pointee += 1
84
+ }
85
+}
0 commit comments