Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
Download (293 Bytes)
Bug #8140
ยป parserbug.rb
Simple test to reproduce -
glyn (Glyn Normington)
, 03/22/2013 12:19 AM
#$ ruby -w parserbug.rb
#lexerbug.rb:1: warning: `+' after local variable is interpreted as binary operator
#lexerbug.rb:1: warning: even though it seems like unary operator
# Bug 1: what local variable?
# Bug 2: there is no ambiguity in the syntax so the warning is a parser bug
puts
''
+
''
(1-1/1)
Loading...