Skip to content

Extensible class bug with inheritance #167

@kunitoki

Description

@kunitoki
 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsevere

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions