diff --git a/src/core/EnumMap.pm b/src/core/EnumMap.pm index 50558af7680..d8d5453a255 100644 --- a/src/core/EnumMap.pm +++ b/src/core/EnumMap.pm @@ -96,6 +96,10 @@ my class EnumMap does Associative { method fmt($format = "%s\t\%s", $sep = "\n") { self.pairs.fmt($format, $sep); } + + method hash(\$self:) is rw { + $self + } } multi sub infix:(EnumMap $a, EnumMap $b) {