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

Hash constructors %() and {} behaves differently #3220

happy-barney opened this issue Oct 6, 2019 · 0 comments


Copy link

@happy-barney happy-barney commented Oct 6, 2019

The Problem

When using both constructs in function only %() gets proper &?ROUTINE

sub foo {
	return %(
		'%()' => %( &? => "bar" ),
		'{}'  => { &? => "bar" },

say foo;

# Output:
{%() => {foo => bar}, {} => {<unit> => bar}}

Expected Behavior

Either same behaviour or different behaviour explained in documentation (


  • Operating system:
uname -srvmpio
Linux 5.0.0-25-generic #26-Ubuntu SMP Thu Aug 1 12:04:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Compiler version (perl6 -v):
This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03
implementing Perl 6.d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.