Files
swift-mirror/test/Concurrency/async_sequence_existential.swift
Allan Shortlidge a75aaf3463 Tests: Re-enable async_sequence_existential.swift on Windows.
The fix in https://github.com/swiftlang/swift/pull/80685 (using `-o` to write
the output to a file, instead of relying on stdout/stderr redirection) seems to
have addressed this issue on other bots.

Resolves https://github.com/swiftlang/swift/issues/80582.
2025-04-15 08:44:05 -07:00

21 lines
537 B
Swift

// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -primary-file %s -dump-ast -o %t.ast.txt
// RUN: %FileCheck %s < %t.ast.txt
// REQUIRES: concurrency
extension Error {
func printMe() { }
}
func test(seq: any AsyncSequence) async {
// CHECK-LABEL: (catch_stmts
// CHECK: (var_decl {{.*}} "error" interface_type="any Error"
do {
for try await _ in seq { }
} catch {
error.printMe()
}
}