Type Is Not Always Returned

no-email (Damien Seguy), Damien Seguy
Fri, 22 Apr 2022 00:00:00 +0000

A method can display a return type, and never return it actually. This happens with exceptions, errors, yield and infinite loops. May be 'never' would be a better choice, if possible.
On the other hand, a function returning 'void', aka returning nothing, should not have any return statement, including the hidden one at the end of the method.