Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar71816041.swift
Karoy Lorentey 47956908b7 [Concurrency] SwiftStdlib 5.5 ⟹ SwiftStdlib 5.1 (usages)
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.
2021-10-28 14:36:36 -07:00

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
}