mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see
also inherited constants for classes without superclass and modules. [ruby-core:37698] [Bug #3423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9acd1965d
commit
43284b6bf8
5 changed files with 39 additions and 5 deletions
|
@ -140,7 +140,9 @@ p Foo::Bar
|
|||
t = Thread.new { AutoloadTest }
|
||||
sleep 0.1
|
||||
# override it
|
||||
eval %q(AutoloadTest = 1)
|
||||
EnvUtil.suppress_warning {
|
||||
eval %q(AutoloadTest = 1)
|
||||
}
|
||||
t.join
|
||||
assert_equal(1, AutoloadTest)
|
||||
ensure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue