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.
1 parent 76e6156 commit b3b24a7Copy full SHA for b3b24a7
validation-test/compiler_crashers_2/unsupported_opened_existential.swift
@@ -0,0 +1,28 @@
1
+// RUN: not --crash %target-swift-frontend -emit-ir %s
2
+
3
+func fetch() {
4
+ sryMap { return "" }
5
+ .napError{ $0.abc() }
6
+}
7
8
+func sryMap<String>(_ transform: () -> String) -> SryMap<String> {
9
+ fatalError()
10
11
12
+protocol MyError {}
13
+extension MyError {
14
+ func abc() -> Void { }
15
16
17
+protocol MyProto {
18
+ associatedtype Failure
19
20
+extension MyProto {
21
+ func napError(_ transform: (Self.Failure) -> Void) {}
22
23
24
+struct SryMap<Output> : MyProto {
25
+ typealias Failure = MyError & SomeClass<Output>
26
27
28
+class SomeClass<T> {}
0 commit comments