TypeScript/tests/cases/fourslash/docCommentTemplatePrototypeMethod.ts
Nathan Shively-Sanders 9052804576
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.
2019-05-20 12:50:29 -07:00

16 lines
286 B
TypeScript

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