On Wed, May 27, 2020 at 8:23 AM Alexandru Pătrănescu <dreal...@gmail.com>
wrote:

> In terms of what final does to a private method, as I understand, it will
> just be ignored everywhere? (except for constructor)
> I mean, final deny overriding but private methods cannot be overridden by
> design. We should have that in the documentation as well, I guess.
>

Hi Alex.

Indeed, it would just be ignored. Optionally, as the other open issue of
the RFC currently proposes, we would throw a warning on those cases
precisely to warn the user that it is meaningless.
And yes, I agree that the docs should be updated to explain that explicitly.

Regards,
Pedro

Reply via email to