summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hess <[email protected]>2023-09-23 19:41:55 +0000
committerJean Boussier <[email protected]>2023-09-23 23:10:46 +0200
commitc42261059dfebabbf0391327a5e077545a9bc438 ()
tree9af7f0d1f6136f91915cdecaa0eab1e4493d3917
parent61a2e9450c025b6a7499719089db5b4ae0317ce6 (diff)
[Bug #19901]
fix in module clone Co-authored-by: Peter Zhu <[email protected]>
-rw-r--r--class.c1
-rw-r--r--test/ruby/test_module.rb12
2 files changed, 13 insertions, 0 deletions
@@ -471,6 +471,7 @@ copy_tables(VALUE clone, VALUE orig)
rb_id_table_foreach(rb_cvc_tbl, cvc_table_copy, &ctx);
RCLASS_CVC_TBL(clone) = rb_cvc_tbl_dup;
}
RCLASS_M_TBL(clone) = 0;
if (!RB_TYPE_P(clone, T_ICLASS)) {
st_data_t id;
@@ -3321,6 +3321,18 @@ class TestModule < Test::Unit::TestCase
CODE
end
private
def assert_top_method_is_private(method)