summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 10:48:33 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 10:48:33 +0000
commitb512e61ca02ad5ebdfb08581e87bbc0791009684 (patch)
tree66197e5c4809e02a4111a3046efb29946f8d6593 /class.c
parent6c5000b5f1a00bb1d21215aeb1881e8c66d4676d (diff)
* class.c (include_modules_at): invalidate method cache if included
module contains constants * test/ruby/test_module.rb: add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/class.c b/class.c
index eeca410..e9b53df 100644
--- a/class.c
+++ b/class.c
@@ -760,6 +760,8 @@ include_modules_at(const VALUE klass, VALUE c, VALUE module)
}
if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries)
changed = 1;
+ if (RMODULE_CONST_TBL(module) && RMODULE_CONST_TBL(module)->num_entries)
+ changed = 1;
skip:
module = RCLASS_SUPER(module);
}