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 7fc028c commit bffcd4bCopy full SHA for bffcd4b
test/IRGen/typed_throws.swift
@@ -4,6 +4,8 @@
4
5
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s --check-prefix=CHECK
6
7
+// RUN: %target-swift-frontend -primary-file %s -emit-ir -enable-library-evolution
8
+
9
// XFAIL: CPU=arm64e
10
// REQUIRES: PTRSIZE=64
11
@@ -216,3 +218,17 @@ func mayThrowEmptyErrorAsync(x: Bool) async throws(EmptyError) -> String? {
216
218
217
219
return ""
220
}
221
222
223
+enum SP: Error {
224
+ case a
225
+ case b(Int32)
226
+}
227
228
+protocol Proto {
229
+ // This used to crash.
230
+ static func f() throws(SP) -> Self
231
232
233
+ static func f2() throws(SP) -> Int64
234
0 commit comments