this code leads to a wrong error msg.
void dum()
{}
int dummy()
{
return 0;
dum();
//return 1;
}
output:
player.as (35, 2) : INFO : Compiling int CPlayer::dummy()
player.as (38, 3) : WARN : Unreachable code
player.as (36, 2) : ERR : Not all paths return a value
If you uncomment the last line it works. it works also with an int a; instead of a func call