Project

General

Profile

« Previous | Next » 

Revision 34579

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.