On Friday, 8 June 2018 at 01:07:17 UTC, Luís Marques wrote:
Shouldn't the property functions' resolution logic take into
account the inherited functions? I had assumed that was the
case (and I was confused by misleading error messages), and
that seems like the more intuitive semantics to me.
It is just the overload and hijacking rules.
If you overload one, you need to bring the base class functions
in too with
alias width = Bits.width;
in the child class.
read this for rationale:
https://dlang.org/articles/hijack.html