typing: remove hack for top-level method `args`
authorJean Privat <jean@pryen.org>
Wed, 23 Jul 2014 01:45:20 +0000 (21:45 -0400)
committerJean Privat <jean@pryen.org>
Wed, 23 Jul 2014 01:56:47 +0000 (21:56 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/typing.nit

index 2a21437..2223131 100644 (file)
@@ -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