typing: error on foo() when foo is a variable
authorJean Privat <jean@pryen.org>
Fri, 24 Feb 2012 19:26:11 +0000 (14:26 -0500)
committerJean Privat <jean@pryen.org>
Fri, 24 Feb 2012 19:26:11 +0000 (14:26 -0500)
commit9de7ba28708977d4a6c6b91a439155927cf17d0b
tree09f71a1ad6f67bc3ec899a669dbc4b5ceb267451
parentec305eaa46f7bd0ad17ccb0fd4f4ea1b1f6844e5
typing: error on foo() when foo is a variable

With the last parser modification we can now distinguish between
no arguments and empty parentheses.

Signed-off-by: Jean Privat <jean@pryen.org>
src/syntax/typing.nit
tests/error_var_args3.nit [new file with mode: 0644]
tests/error_var_args4.nit [new file with mode: 0644]
tests/sav/error_var_args3.sav [new file with mode: 0644]
tests/sav/error_var_args4.sav [new file with mode: 0644]