Issue #98 has been reported by Anonymous.

----------------------------------------
Bug #98: irb Classを抜けるとTypeError
http://redmine.ruby-lang.org/issues/show/98

Author: Anonymous
Status: Open
Priority: Normal
Assigned to: Category: Target version: ClassやClass.newなどのClassクラスのオブジェクトに入ると抜けるときにTypeErrorになります。irb-trunk -r irb/completion --simple-prompt
>> RUBY_DESCRIPTION
=> "ruby 1.9.0 (2008-06-04 revision 16813) [i686-linux]"
>> irb Class
>> exit
TypeError: can't convert Symbol into String
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:317:in `eval'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:317:in `block in inspect'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:310:in `each'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:310:in `inspect'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:302:in `output_value'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:150:in `block (2 levels) in eval_input'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:263:in `signal_status'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:146:in `block in eval_input'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_level_statement'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in `loop'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in `block in each_top_level_statement'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in `catch'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in `each_top_level_statement'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:145:in `eval_input'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:69:in `blockin start'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:68:in `catch'
        from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:68:in `start'
        from /home/kazu/opt/ruby-trunk/bin/irb-trunk:12:in `<main>'Maybe IRB bug!!
>> exit
% irb18 -r irb/completion --simple-prompt
>> RUBY_DESCRIPTION
=> "ruby 1.8.7 (2008-06-04 patchlevel 5000) [i686-linux]"
>> irb Class
>> exit
=> #<IRB::Irb: @context=#<IRB::Context:0xb7c5a94c>, @signal_status=:IN_EVAL, @scanner=#<RubyLex:0xb7c5a104>>
>> exit
%


----------------------------------------
You have received this notification because you have either subscribed toit, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account