Project

General

Profile

Actions

Bug #98

closed

irb Classを抜けるとTypeError

Added by Anonymous over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-dev:34930]

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: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 block 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:in start' 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

Actions

Also available in: Atom PDF

Like0
Like0Like0