From: Jean Privat Date: Fri, 19 Jun 2009 05:32:00 +0000 (-0400) Subject: syntax: variable with () is not a variable X-Git-Tag: v0.3~249 X-Git-Url: http://nitlanguage.org?ds=sidebyside syntax: variable with () is not a variable So do not try to continue and pretend things. Signed-off-by: Jean Privat --- diff --git a/src/syntax/typing.nit b/src/syntax/typing.nit index cb72b44..0b7f6b3 100644 --- a/src/syntax/typing.nit +++ b/src/syntax/typing.nit @@ -1335,6 +1335,7 @@ redef class ACallFormExpr else if not n_args.is_empty then v.error(self, "Error: {name} is variable, not a function.") + return end var vform = variable_create(variable) vform.variable = variable