Bug #386

008: unexpected tINTEGER

Added by Shyouhei Urabe almost 7 years ago. Updated about 4 years ago.

[ruby-dev:35729]
Status:Closed
Priority:Normal
Assignee:Yukihiro Matsumoto
ruby -v: Backport:

Description

=begin
以下のように、"008"を入力として与えると、"007"とも"08"とも違う妙なエラーになるようです。

zsh % ./miniruby -ve '007'
ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: warning: useless use of a literal in void context

zsh % ./miniruby -ve '08'

ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: Invalid octal digit
-e:1: warning: useless use of a literal in void context

zsh % ./miniruby -ve '008'
ruby 1.9.0 (2008-07-29 revision 17576) [x86_64-linux]
-e:1: warning: useless use of a literal in void context
-e:1: syntax error, unexpected tINTEGER, expecting $end
=end

History

#1 Updated by Nobuyoshi Nakada almost 7 years ago

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

=begin
Applied in changeset r18318.
=end

Also available in: Atom PDF