Modify instance tt.

This commit is contained in:
Masamitsu MURASE
2012-06-24 15:15:55 +09:00
parent 6d3b35e064
commit 1deb31320a
+3
View File
@@ -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;