Project

General

Profile

Actions

Bug #386

closed

008: unexpected tINTEGER

Added by shyouhei (Shyouhei Urabe) over 16 years ago. Updated over 13 years ago.

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

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

Actions

Also available in: Atom PDF

Like0
Like0