syntax: new method check_conform_multiexpr
authorJean Privat <jean@pryen.org>
Fri, 12 Jun 2009 01:58:40 +0000 (21:58 -0400)
committerJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 19:47:30 +0000 (15:47 -0400)
commit4fb7a426af4a5fcc0132a13aa291833038b0b071
tree7a153caefb56e7516c5f1af193438713d3236cba
parent859736cd4464dd6b671c45e4a8000f3a3c5f376d
syntax: new method check_conform_multiexpr

This method is used to check conformance among multiple expressions.
It is used to factorize code between AIfexprExpr, AArrayExpr and process_closure.
Tests are also updated to use the new error messages.

Signed-off-by: Jean Privat <jean@pryen.org>
src/syntax/syntax_base.nit
src/syntax/typing.nit
tests/sav/base_array_alt1.sav
tests/sav/base_closure5_alt2.sav
tests/sav/base_closure6.sav
tests/sav/base_closure6_alt1.sav
tests/sav/base_if_expr_alt1.sav
tests/sav/error_array_ambig.sav