New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fwd: Rakudo Star silent exit on subset violation? #1987
Comments
From @cokeOpening a ticket on behalf of ovid... ---------- Forwarded message ---------- I don't know if this is reported (I can't find a bug report for it). I just downloaded and compiled Rakudo Star. $ uname -a The bug: subset Int::Positive of Int where { $_ > 0 }; sub lotto (Int::Positive $count, Int::Positive $range) returns List { If I change the first argument to a float such as 3.2, it seems to round it up Cheers, -- |
From @perlpilotAnother data point .... if you just s/Int:://g, it seems to DTRT: $ perl6 foo.p6 $ cat foo.p6 use v6; subset Positive of Int where { $_ > 0 }; sub lotto (Positive $count, Positive $range) returns List .say for lotto(-3,10); -Scott On Fri Jul 30 07:14:54 2010, coke wrote:
-- |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Fri Jul 30 07:14:54 2010, coke wrote:
This now (git-latest rakudo compiler) fails properly: $ ./perl6 foo Closable with tests. -- |
From @moritznow tested in the ever-growing t/spec/S12-subset/subtypes.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76834 (status was 'resolved')
Searchable as RT76834$
The text was updated successfully, but these errors were encountered: