andrei-markeev/ts2c

return;

pitust opened this issue · 1 comments

For whatever reason, argument-less return doesn't work:

function f() {
    return;
}

It should just result in a return from c.

Error: code cannot determine type of what to return, meanwhile doing "return;" will return undefined, so this should be interpreted as:
function f() {
return undefined;
}
however, there's a bug somewhere for which there can;t determine the type of what to return, ...