Overriding implicit visibility #3179
Labels
bug
internal-issue-created
An internal Google issue has been created to track this GitHub issue
triage-done
Has been reviewed by someone on triage rotation.
In Closure, a child class cannot override visibility of a property with different visibility.
But if the parent visibility is not declared in the jsdoc explicitly (that is treated as @public implicitly if no @fileoverview), the child can change the visibility now.
Is this intentional or bug?
For example:
Repro:
Also I found such cases in Closure Library, but it does not appear to be intentional.
The text was updated successfully, but these errors were encountered: