FALSE must be returned in coroutines, independent of the return
type.
Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
if (current_method is CreationMethod) {
cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("NULL")));
+ } else if (current_method.coroutine) {
+ cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("FALSE")));
} else if (current_return_type is VoidType) {
cerror_block.add_statement (new CCodeReturnStatement ());
} else if (current_return_type != null) {