File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,16 @@ public struct OtherSequenceAdapter<Base: AsyncSequence>: AsyncSequence {
55
55
56
56
// CHECK-NOT: public typealias Failure
57
57
}
58
+
59
+ // CHECK: public struct MineOwnIterator
60
+ @available ( SwiftStdlib 5 . 1 , * )
61
+ public struct MineOwnIterator < Element> : AsyncSequence , AsyncIteratorProtocol {
62
+ public mutating func next( ) async -> Element ? { nil }
63
+ public func makeAsyncIterator( ) -> Self { self }
64
+
65
+ // CHECK: @_implements(_Concurrency.AsyncIteratorProtocol, Failure)
66
+ // CHECK-SAME: public typealias __AsyncIteratorProtocol_Failure = Swift.Never
67
+
68
+ // CHECK: @_implements(_Concurrency.AsyncSequence, Failure)
69
+ // CHECK-SAME: public typealias __AsyncSequence_Failure = Swift.Never
70
+ }
You can’t perform that action at this time.
0 commit comments