Files
swift-mirror/test/ModuleInterface/async_sequence_rethrows.swift
Doug Gregor c96a89b2f2 Introduce a suppressible feature for async sequences Failure type
Suppressing this feature doesn't disable the use of new syntax in the
normal way. Instead, it introduces `@rethrows` on the
AsyncIteratorProtocol and AsyncSequence protocols, so that older
compilers can still use the async sequences generated by newer
compilers and standard libraries.

Fixes the rest of rdar://123782658
2024-02-29 11:49:26 -08:00

11 lines
463 B
Swift

// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name _Concurrency -disable-implicit-concurrency-module-import
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name _Concurrency -disable-implicit-concurrency-module-import
// RUN: %FileCheck %s < %t.swiftinterface
// REQUIRES: concurrency
// CHECK: @rethrows
// CHECK-NEXT: public protocol AsyncIteratorProtocol
public protocol AsyncIteratorProtocol {
}