You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-complete-warning@-1 {{mutation of captured var 'x' in concurrently-executing code}}
70
70
}
71
71
}
72
+
73
+
// rdar://136766795
74
+
do{
75
+
classClass{
76
+
staticfunc test()->@Sendable()->Void{
77
+
{
78
+
// OK, an unbound reference is sendable.
79
+
let _ =Class.method
80
+
}
81
+
}
82
+
83
+
func method(){}
84
+
}
85
+
}
86
+
87
+
do{
88
+
classClass{}
89
+
// expected-complete-note@-1 {{class 'Class' does not conform to the 'Sendable' protocol}}
90
+
91
+
func test(_:@autoclosure@Sendable()->Class){}
92
+
93
+
letc:Class
94
+
test(c)
95
+
// expected-complete-warning@-1:8 {{implicit capture of 'c' requires that 'Class' conforms to `Sendable`; this is an error in the Swift 6 language mode}}
0 commit comments