Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Allow multiple *args #417

Open
johnnyt opened this issue Jul 24, 2015 · 0 comments
Open

Allow multiple *args #417

johnnyt opened this issue Jul 24, 2015 · 0 comments
Labels

Comments

@johnnyt
Copy link
Member

johnnyt commented Jul 24, 2015

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
@johnnyt johnnyt added the Parser label Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant