Simplify control flow and update tests.
authorJean Privat <jean@pryen.org>
Tue, 20 Jan 2009 16:55:09 +0000 (11:55 -0500)
committerJean Privat <jean@pryen.org>
Tue, 20 Jan 2009 16:55:09 +0000 (11:55 -0500)
commitdec7f992e2ac53070faaf3b175360d8e30c38305
tree09024e54f5593698e260c447ea3139ff6fe30b02
parent721be50971822c780f037f544b31315f046b1334
Simplify control flow and update tests.
attr _has_return is not needed since _unreash can do the job.
Also improve the error message if a return is missing.
Tests results are updated to reflect the new error message.
src/syntax/control_flow.nit
tests/sav/base_control_flow_alt1.sav [new file with mode: 0644]
tests/sav/error_fun_ret.sav
tests/sav/error_fun_ret2.sav
tests/sav/error_fun_ret3.sav
tests/sav/error_fun_ret4.sav
tests/sav/error_fun_ret5.sav
tests/sav/error_ref_fun.sav
tests/sav/error_spe_fun.sav