class Program def main is shared t = Test() i = t.doSomething assert i == 0 class Test def doSomething as int return 0