mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A change to the way we determined whether a protocol conformance is "dependent" for marker protocols caused an ABI break for Sendable-refining protocols built with pre-6.0 Swift compilers. The fix for this issue (https://github.com/swiftlang/swift/pull/75769) gated the change on deployment target. The deployment target change fixed the original problem, then caused a related issue when a project mixes deployment targets (pre-6.0 and 6.0+) with non-resilient protocols. Exempt non-resilient protocols from this change so we get consistent behavior. Fixes rdar://134953989.
13 lines
261 B
Swift
13 lines
261 B
Swift
public protocol NonResilientSendableBase: Sendable {
|
|
func f()
|
|
}
|
|
|
|
public protocol NonResilientSendable: NonResilientSendableBase {
|
|
func g()
|
|
}
|
|
|
|
public struct ConformsToNonResilientSendable: NonResilientSendable {
|
|
public func f() { }
|
|
public func g() { }
|
|
}
|