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

Allow multiple *args #417

@johnnyt

Description

@johnnyt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions