Why private methods cant be virtual?

Adam D. Ruppe destructionator at gmail.com
Mon Sep 21 23:33:04 UTC 2020


On Monday, 21 September 2020 at 23:30:30 UTC, H. S. Teoh wrote:
> It looks like a bug to me.

No, it is by design:

https://dlang.org/spec/function.html#virtual-functions

see point 2.


More information about the Digitalmars-d-learn mailing list