Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restore Enum.perl(:arglist) behavior
fixes S32-hash/perl.t
  • Loading branch information
moritz committed Aug 28, 2015
1 parent 1a05c67 commit 2178f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Enum.pm
Expand Up @@ -41,7 +41,7 @@ my class Enum does Associative {

multi method perl(Enum:D: :$arglist) {
my $result;
if not %*perlseen<TOP> { my %*perlseen = :TOP ; return self.perl }
if not %*perlseen<TOP> { my %*perlseen = :TOP ; return self.perl(:$arglist) }
if %*perlseen{self.WHICH} { %*perlseen{self.WHICH} = 2; return "Pair_{self.WHERE}" }
%*perlseen{self.WHICH} = 1;
if nqp::istype($!key, Enum) {
Expand Down

0 comments on commit 2178f78

Please sign in to comment.