On Wed, Aug 5, 2015 at 4:34 PM, Christian Bartolomaeus via RT <
perl6-bugs-follo...@perl.org> wrote:
> Nowadays the error message is:
>
> $ perl6 -e 'subset UInt of Int where * >= 0; sub foo (UInt $bar?) { };
> foo()'
> Invocant requires an instance of type Int, but a type object was passed.
> Did
Nowadays the error message is:
$ perl6 -e 'subset UInt of Int where * >= 0; sub foo (UInt $bar?) { }; foo()'
Invocant requires an instance of type Int, but a type object was passed. Did
you forget a .new?
in block at -e:1
I did some reading and it looks like this is not a bug after all. From
# New Ticket Created by Cédric VINCENT
# Please include the string: [perl #116439]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=116439 >
The code below fails:
$ perl6 -e 'subset UInt of Int where * >= 0; sub foo (UI