1.9 mode can't parse expression #2062

Closed
dzhulk opened this Issue Nov 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants

dzhulk commented Nov 29, 2012

1.9 mode can't parse expression

~  irb
irb(main):001:0> a = 1
=> 1
irb(main):002:0> b = 2
=> 2
irb(main):003:0> c = a - b -1
SyntaxError: expecting keyword_do or '{' or '('
    from /Users/murat/.rbenv/versions/rbx/runtime/19/melbourne.rbc:81:in `syntax_error'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/melbourne.rbc:88:in `parse_string'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/compiler/stages.rbc:241:in `parse'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/compiler/stages.rbc:207:in `run'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/compiler/compiler.rbc:374:in `run'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/compiler/compiler.rbc:302:in `compile_eval'
    from /Users/murat/.rbenv/versions/rbx/runtime/19/compiler/compiler.rbc:314:in `construct_block'
    from kernel/common/eval.rb:70:in `eval'
    from kernel/common/kernel19.rb:42:in `loop'
    from kernel/common/throw_catch19.rb:8:in `catch'
    from kernel/common/throw_catch.rb:10:in `register'
    from kernel/common/throw_catch19.rb:7:in `catch'
    from kernel/common/throw_catch19.rb:8:in `catch'
    from kernel/common/throw_catch.rb:10:in `register'
    from kernel/common/throw_catch19.rb:7:in `catch'
    from kernel/delta/codeloader.rb:68:in `load_script'
    from kernel/delta/codeloader.rb:118:in `load_script'
    from kernel/loader.rb:615:in `script'
    from kernel/loader.rb:816:in `main'irb(main):004:0> 
~  rbx -v
rubinius 2.0.0rc1 (1.9.3 d196e548 2012-11-02 JI) [x86_64-apple-darwin12.2.0]
➜  ~ 
Owner

dbussink commented Nov 29, 2012

This behavior is actually not even consistent in MRI. Closing since it's a duplicate of #1614

dbussink closed this Nov 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment