Avatar
@swift-6.0.3 @swift-main -swift-version 6 -strict-concurrency=complete final class Counter { var count = 0 } @MainActor func f() { let c = Counter() Task { c.count += 1 print(c.count) } Task.detached { c.count += 1 print(c.count) } }