diff --git a/tests/cases/fourslash/jsdocTemplatePrototypeCompletions.ts b/tests/cases/fourslash/jsdocTemplatePrototypeCompletions.ts new file mode 100644 index 0000000000000..065663f2620cb --- /dev/null +++ b/tests/cases/fourslash/jsdocTemplatePrototypeCompletions.ts @@ -0,0 +1,18 @@ +/// + +// @checkJs: true +// @filename: index.js + +//// https://github.com/microsoft/TypeScript/issues/11492 + +//// /** @constructor */ +//// function Foo() {} +//// /** +//// * @template T +//// * @param {T} bar +//// * @returns {T} +//// */ +//// Foo.prototype.foo = function (bar) {}; +//// new Foo().foo({ id: 1234 })./**/ + +verify.completions({ marker: "", exact: ["id"] });