class X def foo(i as int) pass def foo(i as int, j as int) pass def main is shared x = X() print x.foo # .error. Could not find