syntax: variable with () is not a variable
authorJean Privat <jean@pryen.org>
Fri, 19 Jun 2009 05:32:00 +0000 (01:32 -0400)
committerJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 19:47:47 +0000 (15:47 -0400)
So do not try to continue and pretend things.

Signed-off-by: Jean Privat <jean@pryen.org>

src/syntax/typing.nit

index cb72b44..0b7f6b3 100644 (file)
@@ -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