Skip to content

Commit 4d16353

Browse files
authored
Merge pull request #61928 from atrick/fix-capture-test
implicit_weak_capture test requires Concurrency
2 parents 9e4c9ce + 1ecf0a5 commit 4d16353

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/expr/closure/implicit_weak_capture.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking)
22

3+
// REQUIRES: concurrency
4+
35
// REQUIRES: executable_test
46

57
func runIn10ms(_ closure: @escaping @Sendable () -> Void) {
@@ -26,4 +28,4 @@ final class Weak: Sendable {
2628
}
2729

2830
Weak().test()
29-
try await Task.sleep(nanoseconds: 20_000_000)
31+
try await Task.sleep(nanoseconds: 20_000_000)

0 commit comments

Comments
 (0)