Skip to content

Commit 5b9547b

Browse files
authored
Add a fourslash completions test related to JSDoc @template on prototype method (#55513)
1 parent 753c463 commit 5b9547b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @checkJs: true
4+
// @filename: index.js
5+
6+
//// https://github.com/microsoft/TypeScript/issues/11492
7+
8+
//// /** @constructor */
9+
//// function Foo() {}
10+
//// /**
11+
//// * @template T
12+
//// * @param {T} bar
13+
//// * @returns {T}
14+
//// */
15+
//// Foo.prototype.foo = function (bar) {};
16+
//// new Foo().foo({ id: 1234 })./**/
17+
18+
verify.completions({ marker: "", exact: ["id"] });

0 commit comments

Comments
 (0)