summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-06 07:00:19 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-06 07:00:19 +0000
commit9537e8ffe5b7a0e6a2a791e1886509dc98b6d3f9 (patch)
tree4dc30bb86d4131f70c137831c116771783e5fc5b /class.c
parent3dd941b234ab6df52f72bb32e401f6669ef972c7 (diff)
* internal.h, class.c, eval.c, insns.def: find the appropriate
receiver for super called in instance_eval. If such a receiver is not found, raise NoMethodError. [ruby-dev:39772] [Bug #2402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/class.c b/class.c
index 8cfb0b123d..4acdc0807d 100644
--- a/class.c
+++ b/class.c
@@ -58,6 +58,7 @@ class_alloc(VALUE flags, VALUE klass)
RCLASS_SUPER(obj) = 0;
RCLASS_ORIGIN(obj) = (VALUE)obj;
RCLASS_IV_INDEX_TBL(obj) = 0;
+ RCLASS_REFINED_CLASS(obj) = Qnil;
return (VALUE)obj;
}