mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
variable.c: hidden constants
* variable.c (rb_local_constants_i): exclude hidden constants. [ruby-core:75575] [Bug #12389] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4fad63da01
commit
c57c719e4a
3 changed files with 10 additions and 1 deletions
|
@ -603,6 +603,8 @@ class TestModule < Test::Unit::TestCase
|
|||
const_set(:X, 123)
|
||||
end
|
||||
assert_equal(false, klass.class_eval { Module.constants }.include?(:X))
|
||||
|
||||
assert_equal(false, Complex.constants(false).include?(:compatible))
|
||||
end
|
||||
|
||||
module M1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue