CDISP0398E

The type type of the return value from the function name function needs to be the type type.

The type of the expression that is returned from the function is not identical to the return type of the function.
Ensure that the type of the expression on the return statement is correct.