6110   Invalid return expression

Cause

This error occurs if the current method is defined as having no return type but a return instruction was encountered that attempts to return a value.

Action

Add a return type to the method definition, or remove the return value from the return instruction.