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.
This commit is contained in:
Nathan Shively-Sanders 2019-05-20 12:50:29 -07:00 committed by GitHub
parent 907664c31c
commit 9052804576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
*/`);
}