// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -swift-version 6) // RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -swift-version 6 -enable-upcoming-feature WeakLet) // REQUIRES: concurrency // REQUIRES: executable_test // REQUIRES: swift_feature_WeakLet // rdar://102155748 // UNSUPPORTED: back_deployment_runtime func runIn10ms(_ closure: @escaping @Sendable () -> Void) { Task { try! await Task.sleep(nanoseconds: 10_000_000) closure() } } let checkInterval = 10_000_000 let checkIters = 1000 final class Weak: Sendable { let property = "Self exists" func test() async -> (Task, Task) { let t1 = Task { [weak self] in for _ in 0..