mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
463 B
Swift
16 lines
463 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 -enable-experimental-concurrency
|
|
// REQUIRES: concurrency
|
|
|
|
|
|
import ShadowsConcur
|
|
|
|
@available(SwiftStdlib 5.5, *)
|
|
func f(_ t : Task) -> Bool {
|
|
return t.someProperty == "123"
|
|
}
|
|
|
|
@available(SwiftStdlib 5.5, *)
|
|
func g(_: _Concurrency.Task) {}
|