File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
// RUN: %target-swift-ide-test -code-completion -source-filename %t/Main.swift %t/Library.swift -code-completion-token=POINT_DOT | %FileCheck --check-prefix=POINT_DOT %s
6
6
// RUN: %target-swift-ide-test -code-completion -source-filename %t/Main.swift %t/Library.swift -code-completion-token=LENS_DOT | %FileCheck --check-prefix=LENS_DOT %s
7
7
// RUN: %target-swift-ide-test -code-completion -source-filename %t/Main.swift %t/Library.swift -code-completion-token=MYENUM_DOT | %FileCheck --check-prefix=MYENUM_DOT %s
8
+ // RUN: %target-swift-ide-test -code-completion -source-filename %t/Main.swift %t/Library.swift -code-completion-token=MYENUM_INSTANCE_DOT | %FileCheck --check-prefix=MYENUM_INSTANCE_DOT %s
8
9
// RUN: %target-swift-ide-test -code-completion -source-filename %t/Main.swift %t/Library.swift -code-completion-token=HASWRAPPED_DOT| %FileCheck --check-prefix=HASWRAPPED_DOT %s
9
10
10
11
// BEGIN Library.swift
@@ -84,7 +85,15 @@ func testRawRepresentable() {
84
85
// MYENUM_DOT-DAG: Decl[InstanceMethod]/Super: hash({#(self): MyEnum#})[#(into: inout Hasher) -> Void#];
85
86
// MYENUM_DOT: End completions
86
87
}
87
-
88
+ func testRawRepesentableInstance( value: MyEnum ) {
89
+ value. #^MYENUM_INSTANCE_DOT^#
90
+ // MYENUM_INSTANCE_DOT: Begin completions, 4 items
91
+ // MYENUM_INSTANCE_DOT-DAG: Keyword[self]/CurrNominal: self[#MyEnum#];
92
+ // MYENUM_INSTANCE_DOT-DAG: Decl[InstanceVar]/CurrNominal: rawValue[#String#];
93
+ // MYENUM_INSTANCE_DOT-DAG: Decl[InstanceVar]/Super: hashValue[#Int#];
94
+ // MYENUM_INSTANCE_DOT-DAG: Decl[InstanceMethod]/Super: hash({#into: &Hasher#})[#Void#];
95
+ // MYENUM_INSTANCE_DOT: End completions
96
+ }
88
97
func testHasWrappedValue( value: HasWrapped ) {
89
98
value. #^HASWRAPPED_DOT^#
90
99
// HASWRAPPED_DOT: Begin completions, 3 items
You can’t perform that action at this time.
0 commit comments