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