File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,51 @@ export default {
154
154
}
155
155
}
156
156
}
157
+ } ,
158
+ {
159
+ code : `
160
+ class Foo {
161
+ /**
162
+ * @return {TEMPLATE_TYPE}
163
+ */
164
+ bar () {
165
+ }
166
+ }
167
+ ` ,
168
+ errors : [
169
+ {
170
+ line : 4 ,
171
+ message : 'The type \'TEMPLATE_TYPE\' is undefined.'
172
+ }
173
+ ]
174
+ } ,
175
+ {
176
+ code : `
177
+ class Foo {
178
+ /**
179
+ * @return {TEMPLATE_TYPE}
180
+ */
181
+ invalidTemplateReference () {
182
+ }
183
+ }
184
+
185
+ /**
186
+ * @template TEMPLATE_TYPE
187
+ */
188
+ class Bar {
189
+ /**
190
+ * @return {TEMPLATE_TYPE}
191
+ */
192
+ validTemplateReference () {
193
+ }
194
+ }
195
+ ` ,
196
+ errors : [
197
+ {
198
+ line : 4 ,
199
+ message : 'The type \'TEMPLATE_TYPE\' is undefined.'
200
+ }
201
+ ]
157
202
}
158
203
] ,
159
204
valid : [
You can’t perform that action at this time.
0 commit comments