Overriding a method with @protected in a subclass and giving the subclass' method @inheritdoc, doesn't seem to copy the visibility.
inherit_members.rb does have logic pertaining to copying visibility, but not sure if resolve_visibility applies to this scenario. I think that's only used for auto-inherited members, not explicit ones.
/**
* @class Foo
*/
function Foo() {}
/**
* Walking.
*
* @param {number} x
*/
Foo.prototype.walk = function (x) {
};
/**
* Dancing.
*
* @protected
* @param {string} y
*/
Foo.prototype.dance = function (y) {
};
/**
* Sitting.
*
* @private
* @param {Object} z
*/
Foo.prototype.sit = function (z) {
};
/**
* @class FooBar
* @extends Foo
*/
function FooBar() {}
OO.inheritClass( FooBar, Foo );
/**
* @inheritdoc
*/
FooBar.prototype.dance = function (y) {
};
Overriding a method with
@protected
in a subclass and giving the subclass' method@inheritdoc
, doesn't seem to copy the visibility.inherit_members.rb does have logic pertaining to copying visibility, but not sure if
resolve_visibility
applies to this scenario. I think that's only used for auto-inherited members, not explicit ones.