Skip to content

Commit

Permalink
Merge pull request #4072 from vrurg/rakudo_1517
Browse files Browse the repository at this point in the history
Make Num coercer demand definite invocant
  • Loading branch information
lizmat committed Nov 29, 2020
2 parents 1b26983 + a75b3fa commit 3202466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Rational.pm6
Expand Up @@ -65,7 +65,7 @@ my role Rational[::NuT = Int, ::DeT = ::("NuT")] does Real {

method nude() { $!numerator, $!denominator }

method Num(--> Num:D) {
method Num(Rational:D: --> Num:D) {
nqp::p6box_n(nqp::div_In($!numerator,$!denominator))
}

Expand Down

0 comments on commit 3202466

Please sign in to comment.