Disable availability checking in tests that use concurrency

This commit is contained in:
Doug Gregor
2021-07-16 23:03:34 -07:00
parent e2d97af4bf
commit 1e2012d816
218 changed files with 303 additions and 261 deletions

View File

@@ -4,10 +4,12 @@
// REQUIRES: concurrency
#if LIBRARY
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func fn() async {
fatalError()
}
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func reasyncFn(_: () async -> ()) reasync {
fatalError()
}
@@ -17,6 +19,7 @@ public func reasyncFn(_: () async -> ()) reasync {
#else
import Library
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
func callFn() async {
await fn()
}