Skip to content

Commit

Permalink
Make sub circumfix:<{ }> a multi
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Feb 28, 2018
1 parent 474c512 commit 4f04698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Hash.pm
Expand Up @@ -835,7 +835,9 @@ my class Hash { # declared in BOOTSTRAP
}
}

sub circumfix:<{ }>(*@elems) { my % = @elems }
proto sub circumfix:<{ }>(|) {*}
multi sub circumfix:<{ }>(*@elems) { my % = @elems }

# XXX parse dies with 'don't change grammar in the setting, please!'
# with ordinary sub declaration
#sub circumfix:<:{ }>(*@elems) { Hash.^parameterize(Mu,Any).new(@elems) }
Expand Down

0 comments on commit 4f04698

Please sign in to comment.