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