Skip to content

Commit fe26d15

Browse files
committed
Fix availability in new tests
1 parent 55a92da commit fe26d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Concurrency/sendable_functions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@Sendable func globalFunc() { }
66

7+
@available(SwiftStdlib 5.1, *)
78
actor A {
89
var state: Bool = false
910

@@ -18,6 +19,8 @@ actor A {
1819
}
1920
}
2021

22+
@available(SwiftStdlib 5.1, *)
2123
@MainActor @Sendable func globalActorFunc() { } // expected-warning{{main actor-isolated synchronous global function 'globalActorFunc()' cannot be marked as '@Sendable'}}
2224

25+
@available(SwiftStdlib 5.1, *)
2326
@MainActor @Sendable func globalActorFuncAsync() async { }

0 commit comments

Comments
 (0)