mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (defineclass): try to autoload const to be overridden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d9c0014e6
commit
6b7dbd3e31
3 changed files with 14 additions and 0 deletions
|
@ -67,3 +67,12 @@ assert_finish 5, %q{
|
|||
end
|
||||
}, '[ruby-core:21696]'
|
||||
|
||||
assert_equal 'A::C', %q{
|
||||
open("zzz.rb", "w") {}
|
||||
class A
|
||||
autoload :C, "zzz"
|
||||
class C
|
||||
end
|
||||
C
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue