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 6e4c88d commit f72232eCopy full SHA for f72232e
test/TBD/enum_case_protocol_witness.swift
@@ -0,0 +1,23 @@
1
+// REQUIRES: VENDOR=apple
2
+// RUN: %target-swift-frontend -emit-ir -enable-testing -o/dev/null -module-name test -validate-tbd-against-ir=all %s
3
+// RUN: %target-swift-frontend -emit-ir -o/dev/null -module-name test -validate-tbd-against-ir=all %s
4
+
5
+protocol ProtoInternal {
6
+ static var bar1: Self { get }
7
+ static func bar2(arg: Int) -> Self
8
+}
9
10
+enum EnumInternal: ProtoInternal {
11
+ case bar1
12
+ case bar2(arg: Int)
13
14
15
+public protocol ProtoPublic {
16
+ static var bar3: Self { get }
17
+ static func bar4(arg: Int) -> Self
18
19
20
+public enum EnumPublic: ProtoPublic {
21
+ case bar3
22
+ case bar4(arg: Int)
23
0 commit comments