From: Jean Privat Date: Wed, 23 Jul 2014 01:45:20 +0000 (-0400) Subject: typing: remove hack for top-level method `args` X-Git-Tag: v0.6.7~21^2 X-Git-Url: http://nitlanguage.org typing: remove hack for top-level method `args` Signed-off-by: Jean Privat --- diff --git a/src/typing.nit b/src/typing.nit index 2a21437..2223131 100644 --- a/src/typing.nit +++ b/src/typing.nit @@ -252,7 +252,7 @@ private class TypeVisitor assert mproperty isa MMethod - if is_toplevel_context and recv_is_self and not mproperty.is_toplevel and name != "sys" and name != "exit" and name != "args" then + if is_toplevel_context and recv_is_self and not mproperty.is_toplevel and name != "sys" and name != "exit" then # FIXME named methods are here as a workaround error(node, "Error: '{name}' is not a top-level method, thus need a receiver.") end