Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Hash[Any,Any].new.perl failure, vendethiel++
  • Loading branch information
lizmat committed May 24, 2015
1 parent 93e61dc commit 0f0e73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Hash.pm
Expand Up @@ -382,7 +382,7 @@ my class Hash { # declared in BOOTSTRAP
HashIter.invert(self,$!keys).list
}
multi method perl(::?CLASS:D \SELF:) {
if TKey === Any and TValue === Mu and nqp::iscont(SELF) {
if nqp::iscont(SELF) and TKey === Any and TValue === Mu {
':{' ~ SELF.pairs.sort.map({.perl}).join(', ') ~ '}'
}
else {
Expand Down

0 comments on commit 0f0e73f

Please sign in to comment.