Skip to content

Commit

Permalink
Add return signatures to FatRat returning candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 3, 2019
1 parent 395d633 commit 0797f93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Rat.pm6
Expand Up @@ -89,23 +89,23 @@ multi sub CREATE_RATIONAL_FROM_INTS(Int:D \nu, Int:D \de, \t1, \t2) is raw {
# already a FatRat, so keep that
multi sub CREATE_RATIONAL_FROM_INTS(
Int:D \nu, Int:D \de, FatRat \t1, \t2
) is raw {
--> FatRat:D) is raw {
nqp::p6bindattrinvres(
nqp::p6bindattrinvres(nqp::create(FatRat),FatRat,'$!numerator',nu),
FatRat,'$!denominator',de
)
}
multi sub CREATE_RATIONAL_FROM_INTS(
Int:D \nu, Int:D \de, \t1, FatRat \t2
) is raw {
--> FatRat:D) is raw {
nqp::p6bindattrinvres(
nqp::p6bindattrinvres(nqp::create(FatRat),FatRat,'$!numerator',nu),
FatRat,'$!denominator',de
)
}
multi sub CREATE_RATIONAL_FROM_INTS(
Int:D \nu, Int:D \de, FatRat \t1, FatRat \t2
) is raw {
--> FatRat:D) is raw {
nqp::p6bindattrinvres(
nqp::p6bindattrinvres(nqp::create(FatRat),FatRat,'$!numerator',nu),
FatRat,'$!denominator',de
Expand Down

0 comments on commit 0797f93

Please sign in to comment.