This code is legal:
void bar() {}
void foo() {
return bar();
}
You can't assign anything to a void object, so why would you want to return a void?
EDIT: this question is not related to this question. It is asking if returning void is legal. I'm asking when you would ever want to return void.