nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c3805
)
syntax: variable with () is not a variable
author
Jean Privat
<jean@pryen.org>
Fri, 19 Jun 2009 05:32:00 +0000
(
01:32
-0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/syntax/typing.nit
b/src/syntax/typing.nit
index
cb72b44
..
0b7f6b3
100644
(file)
--- 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