@@ -43,8 +43,9 @@ struct ImplicitConstructors1 {
43
43
44
44
func testImplicitConstructors1( ) {
45
45
ImplicitConstructors1#^IMPLICIT_CONSTRUCTORS_1^#
46
- // IMPLICIT_CONSTRUCTORS_1: Begin completions, 1 items
46
+ // IMPLICIT_CONSTRUCTORS_1: Begin completions, 2 items
47
47
// IMPLICIT_CONSTRUCTORS_1-DAG: Decl[Constructor]/CurrNominal: ()[#ImplicitConstructors1#]{{; name=.+$}}
48
+ // IMPLICIT_CONSTRUCTORS_1-DAG: Keyword[self]/CurrNominal: .self[#ImplicitConstructors1.Type#]; name=self
48
49
// IMPLICIT_CONSTRUCTORS_1: End completions
49
50
}
50
51
func testImplicitConstructors1P( ) {
@@ -58,9 +59,10 @@ struct ImplicitConstructors2 {
58
59
59
60
func testImplicitConstructors2( ) {
60
61
ImplicitConstructors2#^IMPLICIT_CONSTRUCTORS_2^#
61
- // IMPLICIT_CONSTRUCTORS_2: Begin completions, 2 items
62
+ // IMPLICIT_CONSTRUCTORS_2: Begin completions, 3 items
62
63
// IMPLICIT_CONSTRUCTORS_2-DAG: Decl[Constructor]/CurrNominal: ({#instanceVar: Int#})[#ImplicitConstructors2#]{{; name=.+$}}
63
64
// IMPLICIT_CONSTRUCTORS_2-DAG: Decl[Constructor]/CurrNominal: ()[#ImplicitConstructors2#]{{; name=.+$}}
65
+ // IMPLICIT_CONSTRUCTORS_2-DAG: Keyword[self]/CurrNominal: .self[#ImplicitConstructors2.Type#]; name=self
64
66
// IMPLICIT_CONSTRUCTORS_2: End completions
65
67
}
66
68
func testImplicitConstructors2P( ) {
@@ -78,10 +80,11 @@ struct ExplicitConstructors1 {
78
80
79
81
func testExplicitConstructors1( ) {
80
82
ExplicitConstructors1#^EXPLICIT_CONSTRUCTORS_1^#
81
- // EXPLICIT_CONSTRUCTORS_1: Begin completions, 3 items
83
+ // EXPLICIT_CONSTRUCTORS_1: Begin completions, 4 items
82
84
// EXPLICIT_CONSTRUCTORS_1-DAG: Decl[Constructor]/CurrNominal: ()[#ExplicitConstructors1#]{{; name=.+$}}
83
85
// EXPLICIT_CONSTRUCTORS_1-DAG: Decl[Constructor]/CurrNominal: ({#a: Int#})[#ExplicitConstructors1#]{{; name=.+$}}
84
86
// EXPLICIT_CONSTRUCTORS_1-DAG: Decl[Constructor]/CurrNominal: ({#a: Int#}, {#b: Float#})[#ExplicitConstructors1#]{{; name=.+$}}
87
+ // EXPLICIT_CONSTRUCTORS_1-DAG: Keyword[self]/CurrNominal: .self[#ExplicitConstructors1.Type#]; name=self
85
88
// EXPLICIT_CONSTRUCTORS_1: End completions
86
89
}
87
90
func testExplicitConstructors1P( ) {
@@ -94,10 +97,11 @@ func testExplicitConstructors1P() {
94
97
95
98
ExplicitConstructors1#^EXPLICIT_CONSTRUCTORS_2^#
96
99
97
- // EXPLICIT_CONSTRUCTORS_2: Begin completions, 3 items
100
+ // EXPLICIT_CONSTRUCTORS_2: Begin completions, 4 items
98
101
// EXPLICIT_CONSTRUCTORS_2-DAG: Decl[Constructor]/CurrNominal: ()[#ExplicitConstructors1#]
99
102
// EXPLICIT_CONSTRUCTORS_2-DAG: Decl[Constructor]/CurrNominal: ({#a: Int#})[#ExplicitConstructors1#]
100
103
// EXPLICIT_CONSTRUCTORS_2-DAG: Decl[Constructor]/CurrNominal: ({#a: Int#}, {#b: Float#})[#ExplicitConstructors1#]
104
+ // EXPLICIT_CONSTRUCTORS_2-DAG: Keyword[self]/CurrNominal: .self[#ExplicitConstructors1.Type#]; name=self
101
105
// EXPLICIT_CONSTRUCTORS_2: End completions
102
106
103
107
ExplicitConstructors1( #^EXPLICIT_CONSTRUCTORS_2 P^#
@@ -130,9 +134,10 @@ struct ExplicitConstructorsSelector1 {
130
134
131
135
func testExplicitConstructorsSelector1( ) {
132
136
ExplicitConstructorsSelector1#^EXPLICIT_CONSTRUCTORS_SELECTOR_1^#
133
- // EXPLICIT_CONSTRUCTORS_SELECTOR_1: Begin completions, 2 items
137
+ // EXPLICIT_CONSTRUCTORS_SELECTOR_1: Begin completions, 3 items
134
138
// EXPLICIT_CONSTRUCTORS_SELECTOR_1-DAG: Decl[Constructor]/CurrNominal: ({#int: Int#})[#ExplicitConstructorsSelector1#]{{; name=.+$}}
135
139
// EXPLICIT_CONSTRUCTORS_SELECTOR_1-DAG: Decl[Constructor]/CurrNominal: ({#int: Int#}, {#andFloat: Float#})[#ExplicitConstructorsSelector1#]{{; name=.+$}}
140
+ // EXPLICIT_CONSTRUCTORS_SELECTOR_1-DAG: Keyword[self]/CurrNominal: .self[#ExplicitConstructorsSelector1.Type#]; name=self
136
141
// EXPLICIT_CONSTRUCTORS_SELECTOR_1: End completions
137
142
}
138
143
@@ -145,11 +150,12 @@ struct ExplicitConstructorsSelector2 {
145
150
146
151
func testExplicitConstructorsSelector2( ) {
147
152
ExplicitConstructorsSelector2#^EXPLICIT_CONSTRUCTORS_SELECTOR_2^#
148
- // EXPLICIT_CONSTRUCTORS_SELECTOR_2: Begin completions, 4 items
153
+ // EXPLICIT_CONSTRUCTORS_SELECTOR_2: Begin completions, 5 items
149
154
// EXPLICIT_CONSTRUCTORS_SELECTOR_2-DAG: Decl[Constructor]/CurrNominal: ({#noArgs: ()#})[#ExplicitConstructorsSelector2#]{{; name=.+$}}
150
155
// EXPLICIT_CONSTRUCTORS_SELECTOR_2-DAG: Decl[Constructor]/CurrNominal: ({#Int#})[#ExplicitConstructorsSelector2#]{{; name=.+$}}
151
156
// EXPLICIT_CONSTRUCTORS_SELECTOR_2-DAG: Decl[Constructor]/CurrNominal: ({#Int#}, {#withFloat: Float#})[#ExplicitConstructorsSelector2#]{{; name=.+$}}
152
157
// EXPLICIT_CONSTRUCTORS_SELECTOR_2-DAG: Decl[Constructor]/CurrNominal: ({#int: Int#}, {#Float#})[#ExplicitConstructorsSelector2#]{{; name=.+$}}
158
+ // EXPLICIT_CONSTRUCTORS_SELECTOR_2-DAG: Keyword[self]/CurrNominal: .self[#ExplicitConstructorsSelector2.Type#]; name=self
153
159
// EXPLICIT_CONSTRUCTORS_SELECTOR_2: End completions
154
160
}
155
161
@@ -174,16 +180,18 @@ class ExplicitConstructorsDerived2 : ExplicitConstructorsBase1 {
174
180
func testExplicitConstructorsBaseDerived1( ) {
175
181
ExplicitConstructorsDerived1#^EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1^#
176
182
}
177
- // EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1: Begin completions, 2 items
183
+ // EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1: Begin completions, 3 items
178
184
// EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1-DAG: Decl[Constructor]/CurrNominal: ()[#ExplicitConstructorsDerived1#]{{; name=.+$}}
179
185
// EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1-DAG: Decl[Constructor]/CurrNominal: ({#a: Int#})[#ExplicitConstructorsDerived1#]{{; name=.+$}}
186
+ // EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1-DAG: Keyword[self]/CurrNominal: .self[#ExplicitConstructorsDerived1.Type#]; name=self
180
187
// EXPLICIT_CONSTRUCTORS_BASE_DERIVED_1: End completions
181
188
182
189
func testGetInitFromMetatype1( ) {
183
190
ExplicitConstructorsBase1. #^INIT_FROM_METATYPE1^#
184
191
}
185
192
186
193
// INIT_FROM_METATYPE1: Begin completions
194
+ // INIT_FROM_METATYPE1-NEXT: Keyword[self]/CurrNominal: self[#ExplicitConstructorsBase1.Type#]; name=self
187
195
// INIT_FROM_METATYPE1-NEXT: Decl[Constructor]/CurrNominal: init()[#ExplicitConstructorsBase1#]{{; name=.+$}}
188
196
// INIT_FROM_METATYPE1-NEXT: Decl[Constructor]/CurrNominal: init({#a: Int#})[#ExplicitConstructorsBase1#]{{; name=.+$}}
189
197
// INIT_FROM_METATYPE1-NEXT: End completions
0 commit comments