Returns statements are currently not type checked. I.e. there is no check comparing the type of the return value with the value given in return statements.
A fix is in CVS.