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