diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-06 06:50:40 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-06 06:50:40 +0000 |
| commit | a026063aeff59d8d8714d46f336197cd5f3d1c9c (patch) | |
| tree | b009347de3cc64e15b080506249a52e6db7a7b2b /compile.c | |
| parent | 6b595b26af59f90e2a6fca9a33a14904e58799f5 (diff) | |
| download | ruby-a026063aeff59d8d8714d46f336197cd5f3d1c9c.tar.gz ruby-a026063aeff59d8d8714d46f336197cd5f3d1c9c.tar.xz ruby-a026063aeff59d8d8714d46f336197cd5f3d1c9c.zip | |
* compile.c (iseq_compile_each): fix setting is_local flag.
* yarvtest/test_class.rb: add a test for class local isntance variable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3325,7 +3325,7 @@ iseq_compile_each(yarv_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) } case NODE_IASGN: case NODE_IASGN2:{ - int is_local = (nd_type(node) == NODE_IVAR2) ? 1 : 0; + int is_local = (nd_type(node) == NODE_IASGN2) ? 1 : 0; COMPILE(ret, "lvalue", node->nd_value); if (!poped) { ADD_INSN(ret, nd_line(node), dup); |
