$ ruby -ve 'def f arg:0; arg; end; p f'
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
0
But not in JRuby I just built from master:
$ ./bin/jruby -ve 'def f arg:0; arg; end; p f'
jruby 9000.dev (2.1.0.dev) 2013-12-25 8fe42d5 on OpenJDK 64-Bit Server VM 1.7.0_45-b31 [linux-amd64]
SyntaxError: -e:1: syntax error, unexpected ':'
def f arg:0; arg; end; p f
^
I am not sure but we probably only need to tweak the parser for this.
The text was updated successfully, but these errors were encountered:
godfat commentedDec 25, 2013
This works in MRI:
But not in JRuby I just built from master:
I am not sure but we probably only need to tweak the parser for this.
The text was updated successfully, but these errors were encountered: