Skip to content

Commit

Permalink
Fix Instant.raku for Rational values
Browse files Browse the repository at this point in the history
Instant.raku was internally depending on Instant.Str, which uses .gist,
which creates issues for values such as 33/7
  • Loading branch information
lizmat committed May 5, 2020
1 parent 4f672c2 commit f506cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Instant.pm6
Expand Up @@ -35,7 +35,7 @@ my class Instant is Cool does Real {
}
multi method raku(Instant:D: --> Str:D) {
my ($posix,$flag) = self.to-posix;
"Instant.from-posix({$flag ?? "$posix,True" !! $posix})";
'Instant.from-posix(' ~ $posix.raku ~ ($flag ?? ',True)' !! ')')
}
method Bridge(Instant:D: ) { $!tai.Bridge }
method Num (Instant:D: --> Num:D) { $!tai.Num }
Expand Down

0 comments on commit f506cc0

Please sign in to comment.