Index: Source/devtools/scripts/jsdoc-validator/tests/proto.js |
diff --git a/Source/devtools/scripts/jsdoc-validator/tests/proto.js b/Source/devtools/scripts/jsdoc-validator/tests/proto.js |
index fae190d447c071cb12aa2f414ca1b42b8fd0b1ae..59c2b8ce14d285f41f9c4af3a407076126ab65b7 100644 |
--- a/Source/devtools/scripts/jsdoc-validator/tests/proto.js |
+++ b/Source/devtools/scripts/jsdoc-validator/tests/proto.js |
@@ -88,3 +88,42 @@ GoodDerived = function() { |
GoodDerived.prototype = { |
__proto__: Base.prototype |
} |
+ |
+/** |
+ * @constructor |
+ * @template T |
+ */ |
+var Set = function() {} |
+ |
+Set.prototype = { |
+ add: function(item) {}, |
+ remove: function(item) {}, |
+ /** @return {boolean} */ |
+ contains: function(item) { return true; } |
+} |
+ |
+/** |
+ * @constructor |
+ * @extends {Set.<T>} |
+ * @template T |
+ */ |
+var GoodSetSubclass = function() |
+{ |
+ Set.call(this); |
+} |
+ |
+GoodSetSubclass.prototype = { |
+ __proto__: Set.prototype |
+} |
+ |
+/** |
+ * @constructor |
+ * @extends {Set.<T>} |
+ * @template T |
+ */ |
+var BadSetSubclass = function() |
+{ |
+} |
+ |
+BadSetSubclass.prototype = { |
+} |