documentation/__tests__/fixture/es6-class-property.input.js
2018-03-07 16:12:17 -08:00

26 lines
362 B
JavaScript

/**
* This is for issue 906.
*/
export class Issue906 {
/**
* This is a read-write property.
* @type {boolean}
*/
get readWriteProp() {
return this._rw;
}
set readWriteProp(value) {
this._rw = value;
}
/**
* This is a read-only property.
* @type {string}
* @readonly
*/
get readOnlyProp() {
return 'foo';
}
}