class Test def main is shared pass def foo x = Bar() # forward reference assert x.one==1 class Bar cue init base.init get one as int return 1