Avatar
Avatar
417_72ki
@swift-main -strict-concurrency=complete struct S: Sendable { init() {} func foo() {} } class Runner { static func main() async throws { var a = S() Task.detached { // (1) a.foo() } // (2) a = S() a.foo() } } try await Runner.main() (edited)
swiftNightly BOT 8/26/2024 1:02 AM
no output (edited)