Re: [perl #116439] Subsets and missing-but-optional arguments don't mix well

2015-08-05 Thread Brandon Allbery
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

[perl #116439] Subsets and missing-but-optional arguments don't mix well

2015-08-05 Thread Christian Bartolomaeus via RT
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

[perl #116439] Subsets and missing-but-optional arguments don't mix well

2013-01-19 Thread via RT
# 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