Bug #98

irb Classを抜けるとTypeError

Added by Anonymous about 7 years ago. Updated over 4 years ago.

[ruby-dev:34930]
Status:Closed
Priority:Normal
Assignee:Keiju Ishitsuka
ruby -v: Backport:

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
=> #, @signal_status=:IN_EVAL, @scanner=#RubyLex:0xb7c5a104>
exit
%
=end

Associated revisions

Revision 34782
Added by Ayumu AIZAWA over 3 years ago

pull request #55 as same as #98

Revision 34782
Added by Ayumu AIZAWA over 3 years ago

pull request #55 as same as #98

History

#1 Updated by Koichi Sasada about 7 years ago

  • Assignee set to Keiju Ishitsuka

=begin

=end

#2 Updated by Nobuyoshi Nakada almost 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18465.
=end

Also available in: Atom PDF