# New Ticket Created by Zoffix Znet
# Please include the string: [perl #128173]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=128173 >
When .polymod on an Int invocan is called with a non-Int divisor, the error
message is very confusing, since there's no `div` in user's code:
$ perl6 -e 'say 42.polymod: 1.5'
Cannot call infix:<div>(Int, Rat); none of these signatures match:
(Int:D \a, Int:D \b)
(int $a, int $b --> int)
in block <unit> at -e line 1
It should instead point out that the user needs to coerce the invocant to Num
or Rat for the non-Int divisors to work.