Skip to content

Commit 9052804

Browse files
authored
Test docCommentTemplate for prototype methods (#31477)
This works in 3.5, but didn't in 3.2. Adding a test to make sure it stays working.
1 parent 907664c commit 9052804

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/// <reference path='fourslash.ts' />
2+
// @Filename: foo.js
3+
4+
/////** @class */
5+
////function C() { }
6+
/////*above*/
7+
////C.prototype.method = /*next*/ function (p) {}
8+
9+
for (const marker of test.markerNames()) {
10+
verify.docCommentTemplateAt(marker, 8,
11+
`/**
12+
*
13+
* @param {any} p
14+
*/`);
15+
}

0 commit comments

Comments
 (0)