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