Project

General

Profile

« Previous | Next » 

Revision e782ca86

Added by naruse (Yui NARUSE) about 12 years ago

merge revision(s) 33935,33936,33987: [Backport #5702]

    * variable.c (set_const_visibility): Module#private_constant has
      changed the visibility of only the first argument.  Now it changes
      all of them.  [ruby-list:48558]

    * test/ruby/test_module.rb: add a test for above.

    * variable.c (set_const_visibility): print a warning when no argument
      is passwd to Module#private_constant.  [ruby-list:48558]

    * vm_method.c (set_method_visibility): ditto for
      Module#private_class_method.

    * variable.c (set_const_visibility): clear inine-cache when constant's
      visibility is modified. [ruby-dev:44929]

    * test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
      add test for it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e