mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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.
16 lines
488 B
Swift
16 lines
488 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/ShadowsConcur.swiftmodule -module-name ShadowsConcur %S/Inputs/ShadowsConcur.swift
|
|
// RUN: %target-typecheck-verify-swift -I %t -disable-availability-checking
|
|
// REQUIRES: concurrency
|
|
|
|
|
|
import ShadowsConcur
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func f(_ t : UnsafeCurrentTask) -> Bool {
|
|
return t.someProperty == "123"
|
|
}
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func g(_: _Concurrency.UnsafeCurrentTask) {}
|