Project

General

Profile

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)