Merge pull request #1470 from carsonmcdonald/morefixfor1467

Tests and another fix for issue #1467
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-08-13 17:44:22 -07:00
2 changed files with 23 additions and 6 deletions
+1 -6
View File
@@ -897,12 +897,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
else {
ci->argc = n;
}
if (c->tt == MRB_TT_ICLASS) {
ci->target_class = c->c;
}
else {
ci->target_class = c;
}
ci->target_class = c;
ci->pc = pc + 1;
ci->acc = a;
+22
View File
@@ -481,3 +481,25 @@ assert('Module#inspect') do
assert_equal 'Test4to_sModules', Test4to_sModules.inspect
end
assert('Issue 1467') do
module M1
def initialize()
super()
end
end
class C1
include M1
def initialize()
super()
end
end
class C2
include M1
end
C1.new
C2.new
end