[perl #130479] [BUG] Type coercion in signature gives warning on optional named arguments
[email protected] ("Zoffix Znet via RT")
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 01 Jan 2017 09:06:32 -0800, [email protected] 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