mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
404 B
Swift
17 lines
404 B
Swift
// RUN: %target-typecheck-verify-swift -enable-experimental-concurrency -verify-syntax-tree
|
|
|
|
func asyncGlobal1() async { }
|
|
func asyncGlobal2() async throws { }
|
|
|
|
typealias AsyncFunc1 = () async -> ()
|
|
typealias AsyncFunc2 = () async throws -> ()
|
|
|
|
func testTypeExprs() {
|
|
let _ = [() async -> ()]()
|
|
let _ = [() async throws -> ()]()
|
|
}
|
|
|
|
func testAwaitOperator() async {
|
|
let _ = __await asyncGlobal1()
|
|
}
|