Files
swift-mirror/test/Concurrency/Inputs/NonStrictModule.swift
Doug Gregor cc75d5e0cd Allow @preconcurrency to suppress an implied Sendable conformance
When a retroactive conformance to a protocol that inherits from `Sendable`
introduces an implicit `Sendable` conformance, allow `@preconcurrency`
to suppress the diagnostic about the `Sendable` conformance being
introduced outside of the original source file.

Fixes rdar://125080066.
2024-05-19 13:57:35 -07:00

18 lines
404 B
Swift

public struct NonStrictStruct { }
open class NonStrictClass {
public init() {}
open func send(_ body: @Sendable () -> Void) {}
open func dontSend(_ body: () -> Void) {}
}
public protocol NonStrictProtocol {
func send(_ body: @Sendable () -> Void)
func dontSend(_ body: () -> Void)
}
open class NonStrictClass2 { }
open class NonStrictClass3 { }
public protocol MySendableProto: Sendable {}