Add a fourslash completions test related to JSDoc @template on prototype method (#55513)

This commit is contained in:
Mateusz Burzyński authored and GitHub committed 2023-08-26 08:57:45 -07:00
1 parent 753c463821
commit 5b9547b1ba
1 file changed
+18
@@ -0,0 +1,18 @@
/// <reference path="fourslash.ts" />
// @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"] });