mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #318 from masamitsu-murase/fix_instance_tt
Patch for inheritance of built-in class
This commit is contained in:
@@ -1050,6 +1050,9 @@ mrb_class_new(mrb_state *mrb, struct RClass *super)
|
||||
mrb_check_inheritable(mrb, super);
|
||||
}
|
||||
c = boot_defclass(mrb, super);
|
||||
if (super){
|
||||
MRB_SET_INSTANCE_TT(c, MRB_INSTANCE_TT(super));
|
||||
}
|
||||
make_metaclass(mrb, c);
|
||||
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user