From b25ecc111162a3110e5413be57bc92db29fdeae0 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 22 Jul 2014 21:45:20 -0400 Subject: [PATCH] typing: remove hack for top-level method `args` Signed-off-by: Jean Privat --- src/typing.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5