We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47e5ede + dc813a0 commit e69a59bCopy full SHA for e69a59b
validation-test/compiler_crashers_2_fixed/rdar151466803.swift
@@ -0,0 +1,25 @@
1
+// RUN: not %target-swift-frontend -typecheck
2
+
3
+enum E: Error, Equatable {
4
+ case error1
5
+}
6
7
+public struct S {}
8
9
+public struct S2: AsyncSequence {
10
+ public typealias Element = S
11
+ public init() {}
12
+ public func makeAsyncIterator() -> AsyncIterator { return AsyncIterator() }
13
+ public struct AsyncIterator: AsyncIteratorProtocol {
14
+ public func next() async throws -> S? {
15
+ return nil
16
+ }
17
18
19
20
+public struct S3: Sendable {
21
+ public func f() async throws -> AsyncSequence<S, E> {
22
+ return S2()
23
24
25
0 commit comments