1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
local Base = { f: 2, g: self.f + 100, }; local WrapperBase = { Base: Base, }; { Derived: Base + { f: 5, old_f: super.f, old_g: super.g, }, WrapperDerived: WrapperBase + { Base+: { f: 5 }, }, }