class Test def main is shared pass def foo(i as int) pass def bar .foo(x) # .error. Cannot find "x"