Commit 1deb3132 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Modify instance tt.

parent 6d3b35e0
...@@ -1050,6 +1050,9 @@ mrb_class_new(mrb_state *mrb, struct RClass *super) ...@@ -1050,6 +1050,9 @@ mrb_class_new(mrb_state *mrb, struct RClass *super)
mrb_check_inheritable(mrb, super); mrb_check_inheritable(mrb, super);
} }
c = boot_defclass(mrb, super); c = boot_defclass(mrb, super);
if (super){
MRB_SET_INSTANCE_TT(c, MRB_INSTANCE_TT(super));
}
make_metaclass(mrb, c); make_metaclass(mrb, c);
return c; return c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment