Files
swift-mirror/test/stdlib/Concurrency.swift
Karoy Lorentey 47956908b7 [Concurrency] SwiftStdlib 5.5 ⟹ SwiftStdlib 5.1 (usages)
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.
2021-10-28 14:36:36 -07:00

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 {
}