alias MyDelegate = void delegate() delegate();
will work. The first void delegate() is the return value of the MyDelegate type.
alias MyDelegate = void delegate() delegate();
will work. The first void delegate() is the return value of the MyDelegate type.