Project

General

Profile

« Previous | Next » 

Revision a2ec8666

Added by mame (Yusuke Endoh) over 14 years ago

  • compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raise
    an exception when "class Foo::Bar" is evaluated and Foo::Bar is
    private. To implement this, define_type of "defineclass" is added
    so that the instruction can distinguish whether the class definition
    is scoped (class Foo::Bar) or not (class Bar).

  • test/ruby/test_class.rb (test_redefine_private_class),
    test/ruby/test_module.rb
    (test_define_module_under_private_constant): add tests for above.

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