jsdoc/test/fixtures/arrowfunction.js
Jeff Williams f4bf81606f fix problems with methods and properties in classes returned by arrow function expressions (#1409)
+ don't prepend `undefined` to method and property names
+ use the parent class's alias
2017-07-16 14:10:52 -07:00

25 lines
405 B
JavaScript

/**
* Increment a number by 1.
*
* @param {number} n - The number to increment.
*/
var increment = n => n + 1;
/**
* Print a value to the console.
*/
var print = (/** @type {*} */ val) => console.log(val);
/**
* Create a class with a `name` property.
*/
var createClass = () => class {
get name() {
return this._name;
}
set name(value) {
this._name = value;
}
}