The current value-returning function never returns.

#2031   Compile-time error

The current value-returning function never returns.

Additional Information

The function is "X".

Recovery

Compilation continues but no compiled source code file will be saved.

Explanation

Every function that returns a value must end with a return action. This is a static check for functions that have no possible way of returning a value to the caller.