On 5/24/18 4:24 PM, IntegratedDimensions wrote:
What I'd like to do isclass C : A {private override @property TT t() { return cast(TT)(_t); } // null check if necessary// Stuff below uses t which is now a TT ... }
It should work, you are allowed covariant overloads. However, private functions are not virtual, you need to make them at least protected.
-Steve