Parse error #2195

Closed
hosiawak opened this Issue Mar 8, 2013 · 4 comments

Projects

None yet

2 participants

@hosiawak
Rubinius member

The following code parses OK in MRI 1.8.7-p371 and MRI 1.9.3-p0 but fails in RBX

m { |a|
  x { a==""?a:b}
}
@dbussink
Rubinius member

Looks like this only fails in 1.9 mode? I've just tried and I only see it failing there with a syntax error. Also curious, any code out there this comes from or just stumbled on it by accident?

@hosiawak
Rubinius member

Yes, it's failing in 1.9. It's OK in 1.8 and 2.0

I stumbled on it when trying to run Almost-Sinatra: https://github.com/rkh/almost-sinatra
(densely written code)

@hosiawak
Rubinius member

EDIT: it's NOT OK in 2.0 mode (I tried running with -X20 but 20 wasn't in --enable-version so it ran in 1.8)

@dbussink
Rubinius member

Looks like this compiles fine these days, closing.

@dbussink dbussink closed this Jul 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment