From: Ryan Davis Date: 2011-01-18T06:35:00+09:00 Subject: Re: Obscure syntax error On Jan 17, 2011, at 02:25 , Rolf Timmermans wrote: > x = nil > x "y" > #=> bar.rb:2:in `
': undefined method `x' for main:Object (NoMethodError) > > x = nil > x :y > #=> bar.rb:2: syntax error, unexpected ':', expecting $end I think the explanation is simple: you (most likely) found a bug in the parser. You should report this to ruby-core@