Bug #1474: autoload causes "circular require considered harmful" warning without circular require
http://redmine.ruby-lang.org/issues/show/1474

Author: Eric Hodel
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0]

$ cat a.rb
autoload :B, 'b'

B
$ cat b.rb
class B
end
$ ruby19 -wv a.rb
ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0]
Error loading gem paths on load path in gem_prelude
no implicit conversion from nil to integer
<internal:gem_prelude>:320:in `[]='
<internal:gem_prelude>:320:in `push_all_highest_version_gems_on_load_path'
<internal:gem_prelude>:344:in `<compiled>'
/Users/drbrain/tmp/b.rb:1: warning: loading in progress, circular require considered harmful - /Users/drbrain/tmp/b.rb


----------------------------------------
http://redmine.ruby-lang.org