Skip to content
Permalink
Browse files

Add return signatures to FatRat returning candidates

  • Loading branch information...
lizmat committed Jan 3, 2019
1 parent 395d633 commit 0797f93ec4e459775acee46169613d9424976271
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/Rat.pm6
@@ -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

0 comments on commit 0797f93

Please sign in to comment.
You can’t perform that action at this time.