mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
526 B
Swift
17 lines
526 B
Swift
// RUN: %target-typecheck-verify-swift -print-diagnostic-groups
|
|
// 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' [DeprecatedDeclaration]}}
|
|
// expected-note@-2 {{use 'UnownedJob' instead}}
|
|
}
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension UnownedJob {
|
|
}
|