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

Can't use ! or is required with named Callable param constrainted by signature #6566

Open
p6rt opened this issue Oct 3, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Oct 3, 2017

Migrated from rt.perl.org#132210 (status was 'new')

Searchable as RT132210$

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

From @zoffixznet

IRC​: https://irclog.perlgeek.de/perl6/2017-10-03#i_15250671

$ perl6 -e 'm​: sub x (​:$param) {say $param}; sub c (​:&funk​:(​:$param)!) { funk :42param }; c(​:funk(&x))'
Required named parameter 'funk​:(​:$param)' not passed
  in sub c at -e line 1
  in block <unit> at -e line 1

$ perl6 -e 'm​: sub x (​:$param) {say $param}; sub c (​:&funk​:(​:$param) is required) { funk :42param }; c(​:funk(&x))'
Required named parameter 'funk​:(​:$param)' not passed

It's possible this bug is related to https://rt-archive.perl.org/perl6/Ticket/Display.html?id=132209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant