mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The concurrency runtime now deploys back to macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, which corresponds to the 5.1 release of the stdlib. Adjust macro usages accordingly.
17 lines
477 B
Swift
17 lines
477 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// REQUIRES: concurrency
|
|
|
|
// Make sure the import succeeds
|
|
import _Concurrency
|
|
|
|
// Make sure the type shows up (including under its old name, for
|
|
// short-term source compatibility)
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension PartialAsyncTask {
|
|
// expected-warning@-1 {{'PartialAsyncTask' is deprecated: renamed to 'UnownedJob'}}
|
|
// expected-note@-2 {{use 'UnownedJob' instead}}
|
|
}
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension UnownedJob {
|
|
}
|