... use of ... is hidden by ...; use alias ... to introduce base class overload set ??

John Chapman johnch_atms at hotmail.com
Mon Oct 21 07:04:33 UTC 2019


On Sunday, 20 October 2019 at 21:45:35 UTC, Robert M. Münch wrote:
> class myWidget : Observer!message {...}
>
> class FilterSubject : SubjectObject!message {
>  Disposable subscribe(myWidget observer){...}
> }
>
>
> I tried to add "alias subscribe = SubjectObject.subscribe;" in 
> different places, but that didn't help. Nor do I have any how 
> that should help...

This should work:

class FilterSubject : SubjectObject!message {
   alias subscribe = typeof(super).subscribe;
   Disposable subscribe(myWidget observer){...}
}


More information about the Digitalmars-d-learn mailing list