From bc45eed1e5133f917cfeee092a697b230493c16c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 19 Jul 2014 03:40:52 +0000 Subject: 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 --- test/ruby/test_assignment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_assignment.rb') 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 -- cgit v1.2.3