MagLev / maglev

GemStone Maglev Ruby Repository
http://maglev.github.io
518 stars 41 forks source link

Allow multiple *args #417

Open johnnyt opened 8 years ago

johnnyt commented 8 years ago

MRI 1.9.3

ruby -e 'a=[1]; b=[2]; p(*a, *b)'

1
2

MagLev

maglev-ruby -e 'a=[1]; b=[2]; p(*a, *b)'

-e:3, syntax error, unexpected tSTAR  expecting EOF end-of-file
ERROR 2702 , a RubyParseError occurred (error 2702), -e:3: syntax error, unexpected tSTAR  expecting EOF end-of-file
unexpected EOF at line 6 (RubyParseError)
topaz 1> exit

when run with no parens - a different error is thrown:

maglev-ruby -e 'a=[1]; b=[2]; p *a, *b'

-e:3, syntax error, unexpected tSTAR  expecting EOF end-of-file
ERROR 2702 , a RubyParseError occurred (error 2702), WARNING, line 3: `*' interpreted as argument prefix
-e:3: syntax error, unexpected tSTAR  expecting EOF end-of-file
unexpected EOF at line 6 (RubyParseError)
topaz 1> exit