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 ca8ffdc commit 7ef1325Copy full SHA for 7ef1325
test/SILGen/enum_equatable_witness.swift
@@ -11,6 +11,18 @@ func check_state(_ state : MyState) -> Int {
11
return state == .opened ? 1 : 0
12
}
13
14
+// generic-enum.swift
15
+enum GenericMyState<T> : String {
16
+ case closed
17
+ case opened
18
+}
19
+
20
+@inline(never)
21
+func check_generic_state(_ state : GenericMyState<Int>) -> Int {
22
+ // CHECK: function_ref @$s4main14GenericMyStateO21__derived_enum_equalsySbACyxG_AEtFZ
23
+ return state == .opened ? 1 : 0
24
25
26
// regular-enum.swift
27
enum Regular {
28
case closed
0 commit comments