Actions
Bug #2407
closednumeric literal without digits
Bug #2407:
numeric literal without digits
Description
=begin
以下のような実験をすると、0o_のパターンの時だけなぜか"numeric literal without digits"なる警告が出るようです。
zsh % ruby -e'0123456789'
-e:1: Invalid octal digit
0123456789
^
zsh %
zsh % ruby -e'0o123456789'
-e:1: Invalid octal digit
0o123456789
^
zsh %
zsh % ruby -e'0_123456789'
-e:1: Invalid octal digit
0_123456789
^
zsh %
zsh % ruby -e'0o_123456789'
-e:1: numeric literal without digits
0o_123456789
^
-e:1: syntax error, unexpected tIDENTIFIER, expecting $end
=end
Files
Actions