LuaBridge3 icon indicating copy to clipboard operation
LuaBridge3 copied to clipboard

Extensible class bug with inheritance

Open kunitoki opened this issue 1 year ago • 0 comments

 function Base:init()
   print('Base:init()')
 end

 function Derived:init()
   print('Derived:init()')
 end 
 
 local base = Base()
 base:init() -- will call Derived:init()

We are registering the Derived:init into the Base:init slot, which shouldn't be the case.

kunitoki avatar Feb 25 '24 23:02 kunitoki