class Test var _bar as Object cue init base.init def getFoo as Foo return (_bar to Bar).getFoo # former bug: a poorly formed assertion failed on this class Program def main is shared pass class Bar def getFoo as Foo return Foo() class Foo pass