This was changed in
https://github.com/rakudo/rakudo/commit/fb5db59220d38e2f9af4c747138742f157d0fabb

… and now you can use anything, even NaN.

Assuming that this behavior is right, testneeded.

See also: https://github.com/perl6/doc/issues/1589

On 2016-01-21 12:04:33, alex.jakime...@gmail.com wrote:
> Code:
> my $x = Duration.new(∞)
>
> Result:
> Type check failed in assignment to $!tai; expected Rat but got Num
> in block <unit> at -e line 1
>
>
> Sure, it could error out on ∞, but it should not mention some internal
> variables that are not in my code (especially if the name is so
> meaningless).

Reply via email to