File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ struct Lens<T> {
25
25
}
26
26
}
27
27
28
- enum MyEnum : String {
28
+ enum MyEnum : String , CaseIterable {
29
29
case foo = " foo "
30
30
case bar = " bar "
31
31
}
@@ -72,13 +72,15 @@ func testDynamicMemberLookup(lens: Lens<Point>) {
72
72
}
73
73
func testRawRepresentable( ) {
74
74
MyEnum. #^MYENUM_DOT^#
75
- // MYENUM_DOT: Begin completions, 7 items
75
+ // MYENUM_DOT: Begin completions, 9 items
76
76
// MYENUM_DOT-DAG: Keyword[self]/CurrNominal: self[#MyEnum.Type#];
77
77
// MYENUM_DOT-DAG: Keyword/CurrNominal: Type[#MyEnum.Type#];
78
78
// MYENUM_DOT-DAG: Decl[EnumElement]/CurrNominal: foo[#MyEnum#];
79
79
// MYENUM_DOT-DAG: Decl[EnumElement]/CurrNominal: bar[#MyEnum#];
80
80
// MYENUM_DOT-DAG: Decl[TypeAlias]/CurrNominal: RawValue[#String#];
81
81
// MYENUM_DOT-DAG: Decl[Constructor]/CurrNominal: init({#rawValue: String#})[#MyEnum?#];
82
+ // MYENUM_DOT-DAG: Decl[TypeAlias]/CurrNominal: AllCases[#[MyEnum]#];
83
+ // MYENUM_DOT-DAG: Decl[StaticVar]/CurrNominal: allCases[#[MyEnum]#];
82
84
// MYENUM_DOT-DAG: Decl[InstanceMethod]/Super: hash({#(self): MyEnum#})[#(into: inout Hasher) -> Void#];
83
85
// MYENUM_DOT: End completions
84
86
}
You can’t perform that action at this time.
0 commit comments