Home
Function return type does not match with the actual variable returned
Rule description
- Function return type does not match with the actual variable returned
Non-compliant Code Example
function integer CheckFunctionReturnType (string id, LONGLONG quantity)
Return quantity //Non compliant code
end function
Compliant Code Example
function LONGLONG CheckFunctionReturnType (string id, integer quantity)
Return quantity //Compliant code
end function