Avatar
Avatar
Iceman
@swift-6.2.3 @swift-6.1.3 @swift-6.0.3 -swift-version 6struct S<K, V> {} extension S: Sendable where K: Sendable {} struct S2<K> {} extension S2: Sendable where K: Sendable {} typealias A<Field: Sendable> = S<Field, String> typealias B<Field: Sendable> = S2<Field> extension A: Error {} extension B: Error {} (edited)
exit status 1 with stderr:<stdin>:11:1: error: conditional conformance to non-marker protocol 'Error' cannot depend on conformance of 'K' to marker protocol 'Sendable' 9 | 10 | extension A: Error {} 11 | extension B: Error {} | `- error: conditional conformance to non-marker protocol 'Error' cannot depend on conformance of 'K' to marker protocol 'Sendable' 12 | (edited)