Skip to content

Commit

Permalink
Test docCommentTemplate for prototype methods (#31477)
Browse files Browse the repository at this point in the history
This works in 3.5, but didn't in 3.2. Adding a test to make sure it
stays working.
  • Loading branch information
sandersn committed May 20, 2019
1 parent 907664c commit 9052804
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/cases/fourslash/docCommentTemplatePrototypeMethod.ts
@@ -0,0 +1,15 @@
/// <reference path='fourslash.ts' />
// @Filename: foo.js

/////** @class */
////function C() { }
/////*above*/
////C.prototype.method = /*next*/ function (p) {}

for (const marker of test.markerNames()) {
verify.docCommentTemplateAt(marker, 8,
`/**
*
* @param {any} p
*/`);
}

0 comments on commit 9052804

Please sign in to comment.