TypeScript/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts
Ron Buckton d07e866a28
Fix for jsdoc modifiers on constructor params (#38403)
* Fix for jsdoc modifiers on constructor params

* Update Public API baseline and fix unique symbol grammar check for js
2020-05-11 15:07:43 -07:00

43 lines
851 B
TypeScript

// @allowJs: true
// @checkJs: true
// @target: esnext
// @out: foo.js
// @declaration: true
// @Filename: jsdocAccessibilityTagDeclarations.js
class Protected {
/** @protected */
constructor(c) {
/** @protected */
this.c = c
}
/** @protected */
m() {
return this.c
}
/** @protected */
get p() { return this.c }
/** @protected */
set p(value) { this.c = value }
}
class Private {
/** @private */
constructor(c) {
/** @private */
this.c = c
}
/** @private */
m() {
return this.c
}
/** @private */
get p() { return this.c }
/** @private */
set p(value) { this.c = value }
}
// https://github.com/microsoft/TypeScript/issues/38401
class C {
constructor(/** @public */ x, /** @protected */ y, /** @private */ z) {
}
}