Merge pull request #3278 from bouk/dup-class

Copy over INSTANCE_TT when duping class
This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-30 03:52:56 +09:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -285,6 +285,7 @@ copy_class(mrb_state *mrb, mrb_value dst, mrb_value src)
}
dc->mt = kh_copy(mt, mrb, sc->mt);
dc->super = sc->super;
MRB_SET_INSTANCE_TT(dc, MRB_INSTANCE_TT(sc));
}
static void