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

@a[*]:kv / %a{*}:kv -> $k, $v dies #3290

Closed
p6rt opened this issue Dec 9, 2013 · 5 comments
Closed

@a[*]:kv / %a{*}:kv -> $k, $v dies #3290

p6rt opened this issue Dec 9, 2013 · 5 comments

Comments

@p6rt
Copy link

@p6rt p6rt commented Dec 9, 2013

Migrated from rt.perl.org#120739 (status was 'resolved')

Searchable as RT120739$

@p6rt
Copy link
Author

@p6rt p6rt commented Dec 9, 2013

From @lizmat

[23​:18​:52] <lizmat> r​: my %a; for %a{*}​:kv -> $k, $v { }
[23​:18​:55] <+camelia> rakudo-jvm 0bf3de​: OUTPUT«Not enough positional parameters passed; got 1 but expected 2␤ in block at gen/jvm/CORE.setting​:7291␤ in block at gen/jvm/CORE.setting​:7127␤ in method gimme at gen/jvm/CORE.setting​:7545␤ in block at /tmp/gwFDkj2XZ0​:1␤ in any eval at gen/jv…»
[23​:18​:56] <+camelia> ..rakudo-parrot 0bf3de​: OUTPUT«Not enough positional parameters passed; got 1 but expected 2␤ in block at /tmp/Bm_BlTWiyZ​:1␤ in any at /tmp/Bm_BlTWiyZ​:1␤ in any at gen/parrot/stage2/NQPHLL.nqp​:1146␤ in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133␤ in any evalfiles a…»
[23​:19​:22] <lizmat> r​: my @​a; for @​a[*]​:kv -> $k, $v { }
[23​:19​:27] <+camelia> rakudo-jvm 0bf3de​: OUTPUT«Not enough positional parameters passed; got 1 but expected 2␤ in block at gen/jvm/CORE.setting​:7291␤ in block at gen/jvm/CORE.setting​:7127␤ in method gimme at gen/jvm/CORE.setting​:7545␤ in block at /tmp/QM8ur99QOO​:1␤ in any eval at gen/jv…»
[23​:19​:27] <+camelia> ..rakudo-parrot 0bf3de​: OUTPUT«Not enough positional parameters passed; got 1 but expected 2␤ in block at /tmp/zj2EDMiYai​:1␤ in any at /tmp/zj2EDMiYai​:1␤ in any at gen/parrot/stage2/NQPHLL.nqp​:1146␤ in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133␤ in any evalfiles a…»
[23​:19​:36] lizmat submits rakudobug

@p6rt
Copy link
Author

@p6rt p6rt commented Apr 13, 2014

From @Mouq

On Mon Dec 09 14​:23​:46 2013, elizabeth wrote​:

[23​:18​:52] <lizmat> r​: my %a; for %a{*}​:kv -> $k, $v { }
[23​:18​:55] <+camelia> rakudo-jvm 0bf3de​: OUTPUT«Not enough
positional parameters passed; got 1 but expected 2␤ in block at
gen/jvm/CORE.setting​:7291␤ in block at gen/jvm/CORE.setting​:7127␤
in method gimme at gen/jvm/CORE.setting​:7545␤ in block at
/tmp/gwFDkj2XZ0​:1␤ in any eval at gen/jv…»
[23​:18​:56] <+camelia> ..rakudo-parrot 0bf3de​: OUTPUT«Not enough
positional parameters passed; got 1 but expected 2␤ in block at
/tmp/Bm_BlTWiyZ​:1␤ in any at /tmp/Bm_BlTWiyZ​:1␤ in any at
gen/parrot/stage2/NQPHLL.nqp​:1146␤ in any eval at
gen/parrot/stage2/NQPHLL.nqp​:1133␤ in any evalfiles a…»
[23​:19​:22] <lizmat> r​: my @​a; for @​a[*]​:kv -> $k, $v { }
[23​:19​:27] <+camelia> rakudo-jvm 0bf3de​: OUTPUT«Not enough
positional parameters passed; got 1 but expected 2␤ in block at
gen/jvm/CORE.setting​:7291␤ in block at gen/jvm/CORE.setting​:7127␤
in method gimme at gen/jvm/CORE.setting​:7545␤ in block at
/tmp/QM8ur99QOO​:1␤ in any eval at gen/jv…»
[23​:19​:27] <+camelia> ..rakudo-parrot 0bf3de​: OUTPUT«Not enough
positional parameters passed; got 1 but expected 2␤ in block at
/tmp/zj2EDMiYai​:1␤ in any at /tmp/zj2EDMiYai​:1␤ in any at
gen/parrot/stage2/NQPHLL.nqp​:1146␤ in any eval at
gen/parrot/stage2/NQPHLL.nqp​:1133␤ in any evalfiles a…»
[23​:19​:36] lizmat submits rakudobug

Works now​:

$ perl6 -e'my %a; for %a{*}​:kv -> $k, $v { }'
$ perl6 -e'my @​a; for @​a[*]​:kv -> $k, $v { }'
$

Marking as testneeded

@p6rt
Copy link
Author

@p6rt p6rt commented Apr 13, 2014

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

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 24, 2014

From @usev6

I added a test to S03-operators/subscript-adverbs.t with the following commit​: Raku/roast@7f16f13

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 24, 2014

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant