Bug #98
closedirb Classを抜けるとTypeError
Description
=begin
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:ineval' 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:ineach' 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:inoutput_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:insignal_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:inblock (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:inblock 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:ineach_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:inblock in 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:instart' from /home/kazu/opt/ruby-trunk/bin/irb-trunk:12:in
'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
%
=end
Updated by ko1 (Koichi Sasada) over 16 years ago
- Assignee set to keiju (Keiju Ishitsuka)
=begin
=end
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r18465.
=end