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 bind to a Pair #6264

Closed
p6rt opened this issue May 24, 2017 · 4 comments
Closed

can't bind to a Pair #6264

p6rt opened this issue May 24, 2017 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 24, 2017

Migrated from rt.perl.org#131353 (status was 'rejected')

Searchable as RT131353$

@p6rt
Copy link
Author

p6rt commented May 24, 2017

From @nkh

my ($y) := (Pair.new(1, 1)) ;

fails with error​:

Too few positionals passed; expected 1 argument but got 0

@p6rt
Copy link
Author

p6rt commented May 24, 2017

From @zoffixznet

On Wed, 24 May 2017 04​:29​:58 -0700, nadim.khemir@​gmail.com wrote​:

my ($y) := (Pair.new(1, 1)) ;

fails with error​:

Too few positionals passed; expected 1 argument but got 0

Thank you for the report. However this is not a bug.

See conversation in https://irclog.perlgeek.de/perl6/2017-05-24#i_14629522

I also added[^1] docs for Mu.Capture, which is what the OP code is using, and
opened[^2] a doc Issue to ensure we have clear documentation on what public attributes
the types have (which is what ends up as the Capture via Mu.Capture)

[1] Raku/doc@c798ff6
[2] Raku/doc#1331

@p6rt
Copy link
Author

p6rt commented May 24, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 24, 2017

@zoffixznet - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed May 24, 2017
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant