[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2018-02-12 Thread Zoffix Znet via RT
On Wed, 17 Jan 2018 15:48:31 -0800, c...@zoffix.com wrote:
> On Sun, 01 Jan 2017 09:06:32 -0800, dougljenk...@gmail.com wrote:
> > I would expect this code to ignore the conversion of $foo if no value is
> > passed for it.
> > 
> > $ perl6 -e 'sub (Int(Cool) :$foo){}()'
> > 
> > Use of uninitialized value of type Cool in numeric context
> >   in sub  at -e line 1
> > 
> > IRC discussion: https://irclog.perlgeek.de/perl6/2017-01-01#i_13832608
> 
> 
> Thank you for the report. This is now fixed in branch `post-release`.
> 
> Fix:  https://github.com/rakudo/rakudo/commit/ae697080d2d5225
> Test: https://github.com/perl6/roast/commit/6457b4fab81809c5a


This has been reverted for now, in light of 
https://github.com/rakudo/rakudo/issues/1517
(and somewhat https://github.com/rakudo/rakudo/issues/1519 too)

We need to figure out how/whether handle the cases whether the two types of
the coercer aren't subclasses and I rather we don't push the original fix into
a release before we do that.

Keeping this Issue as resolved, with the problem being continued on 
https://github.com/rakudo/rakudo/issues/1517


[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2018-02-12 Thread Zoffix Znet via RT
On Wed, 17 Jan 2018 15:48:31 -0800, c...@zoffix.com wrote:
> On Sun, 01 Jan 2017 09:06:32 -0800, dougljenk...@gmail.com wrote:
> > I would expect this code to ignore the conversion of $foo if no value is
> > passed for it.
> > 
> > $ perl6 -e 'sub (Int(Cool) :$foo){}()'
> > 
> > Use of uninitialized value of type Cool in numeric context
> >   in sub  at -e line 1
> > 
> > IRC discussion: https://irclog.perlgeek.de/perl6/2017-01-01#i_13832608
> 
> 
> Thank you for the report. This is now fixed in branch `post-release`.
> 
> Fix:  https://github.com/rakudo/rakudo/commit/ae697080d2d5225
> Test: https://github.com/perl6/roast/commit/6457b4fab81809c5a


This has been reverted for now, in light of 
https://github.com/rakudo/rakudo/issues/1517
(and somewhat https://github.com/rakudo/rakudo/issues/1519 too)

We need to figure out how/whether handle the cases whether the two types of
the coercer aren't subclasses and I rather we don't push the original fix into
a release before we do that.

Keeping this Issue as resolved, with the problem being continued on 
https://github.com/rakudo/rakudo/issues/1517


[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2018-01-17 Thread Zoffix Znet via RT
On Sun, 01 Jan 2017 09:06:32 -0800, dougljenk...@gmail.com wrote:
> I would expect this code to ignore the conversion of $foo if no value is
> passed for it.
> 
> $ perl6 -e 'sub (Int(Cool) :$foo){}()'
> 
> Use of uninitialized value of type Cool in numeric context
>   in sub  at -e line 1
> 
> IRC discussion: https://irclog.perlgeek.de/perl6/2017-01-01#i_13832608


Thank you for the report. This is now fixed in branch `post-release`.

Fix:  https://github.com/rakudo/rakudo/commit/ae697080d2d5225
Test: https://github.com/perl6/roast/commit/6457b4fab81809c5a


[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2018-01-17 Thread Zoffix Znet via RT
On Sun, 01 Jan 2017 09:06:32 -0800, dougljenk...@gmail.com wrote:
> I would expect this code to ignore the conversion of $foo if no value is
> passed for it.
> 
> $ perl6 -e 'sub (Int(Cool) :$foo){}()'
> 
> Use of uninitialized value of type Cool in numeric context
>   in sub  at -e line 1
> 
> IRC discussion: https://irclog.perlgeek.de/perl6/2017-01-01#i_13832608


Thank you for the report. This is now fixed in branch `post-release`.

Fix:  https://github.com/rakudo/rakudo/commit/ae697080d2d5225
Test: https://github.com/perl6/roast/commit/6457b4fab81809c5a


[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments

2017-01-02 Thread via RT
# New Ticket Created by  Douglas Jenkins 
# Please include the string:  [perl #130479]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=130479 >


I would expect this code to ignore the conversion of $foo if no value is
passed for it.

$ perl6 -e 'sub (Int(Cool) :$foo){}()'

Use of uninitialized value of type Cool in numeric context
  in sub  at -e line 1

IRC discussion: https://irclog.perlgeek.de/perl6/2017-01-01#i_13832608