summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-19 03:40:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-19 03:40:52 +0000
commitbc45eed1e5133f917cfeee092a697b230493c16c (patch)
treef58291c60aff8d83ddc5e9b4e950ceb041e1d72a /test
parentf75b676cc4f5411c4c1aa8cc9cb48d5dd665af6f (diff)
compile.c: private reader in op_assign
* compile.c (iseq_compile_each): allow to access private attribute reader in op_assign. [ruby-core:63817] [Bug #10060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_assignment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_assignment.rb b/test/ruby/test_assignment.rb
index c6f1cd1bc7..9c0fd48725 100644
--- a/test/ruby/test_assignment.rb
+++ b/test/ruby/test_assignment.rb
@@ -106,9 +106,9 @@ class TestAssignment < Test::Unit::TestCase
o = Object.new
class << o
+ private
def foo; 42; end
def [](i); 42; end
- private
def foo=(a); 42; end
def []=(i, a); 42; end
end