Is it valid to have dead code after return statement? For example:
fn func -> void {return; var a:i32 = 1; return;}
Ps. we know this is valid:
fn func -> void { if (a) { return; } var a:i32 = 1; return;}
Initial thoughts: Return must come last in its block. (Might have usability issues, ie. hacking code and wanting to return in the middle of block as we don't have if defs and so on.)