Skip Menu |
Report information
Id: 128173
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at]

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: [LTA ERROR] .polymod on Int with non-Int divisors
Download (untitled) / with headers
text/plain 448b
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.
Download (untitled) / with headers
text/plain 121b
The fix for this kinda depends on how will get resolved.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at