Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse failure with signature unpacking on anon Callable param #1326

Closed
zoffixznet opened this issue Dec 21, 2017 · 0 comments
Closed

Parse failure with signature unpacking on anon Callable param #1326

zoffixznet opened this issue Dec 21, 2017 · 0 comments
Labels
good first issue This issue is likely easy for beginners to resolve

Comments

@zoffixznet
Copy link
Contributor

zoffixznet commented Dec 21, 2017

3rd code should work just the same as 2nd code does

m: -> & {}(-> {})
rakudo-moar 202459ce0: OUTPUT: «»

m: -> &z:() {}(-> {})
rakudo-moar 202459ce0: OUTPUT: «»

m: -> &:() {}(-> {})
rakudo-moar 202459ce0: OUTPUT: «(exit code 1) Cannot unpack or Capture `->  { #`(Block|94478251310560) ... }`.␤To create a…»
<Zoffix> I think that ticket can be fixed by just changing this line
    to `<subshortname> | <sigterm> | <subshortname> <sigterm>` 
    https://github.com/rakudo/rakudo/blob/202459ce0b9cf0170339d543529c9415d52ac3d4/src/Perl6/Grammar.nqp#L582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This issue is likely easy for beginners to resolve
Projects
None yet
Development

No branches or pull requests

1 participant