All pastes #3303075 Raw Edit

Someone

public unlisted text v1 · immutable
#3303075 ·published 2015-12-26 18:41 UTC
rendered paste body
diff --git a/lib/Data/Dump.pm6 b/lib/Data/Dump.pm6
index 7ab4099..835d8d5 100644
--- a/lib/Data/Dump.pm6
+++ b/lib/Data/Dump.pm6
@@ -47,7 +47,7 @@ module Data::Dump {
         $out ~= Dump($o, :$max-recursion, :$indent, ilevel => $ilevel+1).trim-trailing ~ ",\n"; 
       }
       $out ~= "{@($obj).elems > 0 ?? $space !! ' '}{sym(']')}\n";
-    } elsif $obj.WHAT ~~ any(Int, Str, Rat, Numeric) {
+    } elsif $obj.WHAT ~~ any(Int, Str, Rat, Num, Numeric) {
       my $what = $obj.WHAT.^name;
       $out ~= "{$space}{val($obj.perl // '<undef>')}\.{what($what)}\n";
     } elsif Any ~~ $obj.WHAT {