class Top cue init(i as int) base.init def foo(i as int) as int return i*2 class Bottom inherits Top cue init(i as int) base.init(i) def foo(i as int) as int is new return base.foo(i) def main is shared b as Bottom = Bottom(0) assert b.foo(3)==6