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 @@ -101,6 +101,51 @@ export default {
101
101
}
102
102
}
103
103
}
104
+ } ,
105
+ {
106
+ code : `
107
+ class Foo {
108
+ /**
109
+ * @return {TEMPLATE_TYPE}
110
+ */
111
+ bar () {
112
+ }
113
+ }
114
+ ` ,
115
+ errors : [
116
+ {
117
+ line : 4 ,
118
+ message : 'The type \'TEMPLATE_TYPE\' is undefined.'
119
+ }
120
+ ]
121
+ } ,
122
+ {
123
+ code : `
124
+ class Foo {
125
+ /**
126
+ * @return {TEMPLATE_TYPE}
127
+ */
128
+ invalidTemplateReference () {
129
+ }
130
+ }
131
+
132
+ /**
133
+ * @template TEMPLATE_TYPE
134
+ */
135
+ class Bar {
136
+ /**
137
+ * @return {TEMPLATE_TYPE}
138
+ */
139
+ validTemplateReference () {
140
+ }
141
+ }
142
+ ` ,
143
+ errors : [
144
+ {
145
+ line : 4 ,
146
+ message : 'The type \'TEMPLATE_TYPE\' is undefined.'
147
+ }
148
+ ]
104
149
}
105
150
] ,
106
151
valid : [
You can’t perform that action at this time.
0 commit comments