class A cue init(value as T) base.init _value = value pro value from var as T def one as int return 1 extend A def value2 as X return .value class B inherits A cue init(value as T) base.init(value) class P def main is shared a = A('hi') assert a.value == 'hi' assert a.value2 == 'hi' b = B('hi') assert b.value == 'hi' assert b.value2 == 'hi'