Project

General

Profile

Actions

Bug #386

closed

008: unexpected tINTEGER

Added by shyouhei (Shyouhei Urabe) over 15 years ago. Updated almost 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 #1

Updated by nobu (Nobuyoshi Nakada) over 15 years ago

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

=begin
Applied in changeset r18318.
=end

Actions

Also available in: Atom PDF

Like0
Like0