Skip to content

@inheritdoc doesn't inherit constructor documentation #1012

@darrylring

Description

@darrylring

In the documentation generated by the following code, B's constructor does not inherit A's constructor documentation.

A is documented correctly but B's documentation is empty.

/**
 * Does something with a number.
 *
 * @class
 * @param {number} a - The number.
 */
function A(a) {
    this.a = a;
}

/**
 * @class
 * @augments A
 * @inheritdoc
 */
function B() {
    A.apply(this, arguments);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions