Skip to content

Commit fa502b4

Browse files
committed
Need to setup singleton_class chain; fix #3509
1 parent 38a3b89 commit fa502b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/class.c

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ prepare_singleton_class(mrb_state *mrb, struct RBasic *o)
9797
}
9898
else {
9999
sc->super = o->c;
100+
prepare_singleton_class(mrb, (struct RBasic*)sc);
100101
}
101102
o->c = sc;
102103
mrb_field_write_barrier(mrb, (struct RBasic*)o, (struct RBasic*)sc);

0 commit comments

Comments
 (0)