// RUN: %target-swift-frontend -emit-sil -verify -o /dev/null -disable-availability-checking %s -strict-concurrency=complete -disable-region-based-isolation-with-strict-concurrency // RUN: %target-swift-frontend -emit-sil -verify -o /dev/null -disable-availability-checking %s -strict-concurrency=complete // REQUIRES: concurrency // REQUIRES: asserts actor A { func g() { } func h() throws { } func f() async throws { await withTaskGroup(of: Int.self, returning: Void.self) { group in g() } try await withThrowingTaskGroup(of: Int.self, returning: Void.self) { group in try h() } } }