mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
338 B
Swift
12 lines
338 B
Swift
// RUN: %target-swift-frontend -emit-ir -primary-file %s -enable-experimental-concurrency
|
|
// REQUIRES: concurrency
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func getIntAndString() async -> (Int, String) { (5, "1") }
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func testDecompose() async -> Int {
|
|
async let (i, s) = await getIntAndString()
|
|
return await i
|
|
}
|