class Test shared def check(x as int) assert x > 0 trace x class Foo def main is shared Test.check(5)