On Sun Dec 27 18:27:03 2015, c...@zoffix.com wrote:
> here's related one for the numerator:
> 
> <Zoffix> m: say Int/Int.WHAT
> <camelia> rakudo-moar a7ea8e: OUTPUT«Parameter 'nu' requires an
> instance of type Int, but a type object was passed.  Did you forget a
> .new?␤  in block <unit> at /tmp/LnnSdb0IY8 line 1␤␤»

So, the issue here is that because of the precedence, we're trying to divide by 
a type object (1/1.WHAT) === 1/(1.WHAT).

But, nu/de are not the names of the Rat attributes. I suspect the issue might 
be with src/core/Rat.pm's 

    sub DIVIDE_NUMBERS(Int:D \nu, Int:D \de, $t1, $t2) {

perhaps renaming those args is the simplest fix here.


-- 
Will "Coke" Coleda

Reply via email to