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
[Concurrency] Allow properties with @Sendable function types witness non-Sendable requirements
This is already supported for method and subscript witnesses that get
their types decomposed.
```
protocol P {
var test: () -> Void { get }
}
extension S : P {
let test: @sendable () -> Void // no concurrency warnings
}
```
Resolves: rdar://133403333
Copy file name to clipboardExpand all lines: test/Concurrency/sendable_conformance_checking.swift
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,3 +187,20 @@ actor MyActor {
187
187
// expected-warning@+1 {{non-final class 'Nested' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode}}
0 commit comments