mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 02:15:12 -06:00
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:
parent
907664c31c
commit
9052804576
15
tests/cases/fourslash/docCommentTemplatePrototypeMethod.ts
Normal file
15
tests/cases/fourslash/docCommentTemplatePrototypeMethod.ts
Normal 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
|
||||
*/`);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user