Commit fbfef551 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Module#include should also include included modules; close #340

parent ca930538
......@@ -646,6 +646,7 @@ mrb_include_module(mrb_state *mrb, struct RClass *c, struct RClass *m)
{
struct RClass *ic;
if (m->super) mrb_include_module(mrb, c, m->super);
ic = (struct RClass*)mrb_obj_alloc(mrb, MRB_TT_ICLASS, mrb->class_class);
ic->c = m;
ic->mt = m->mt;
......
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