As far as I know, this ticket is impossible to resolve. At least not with what we have now in rakudo.
To produce an error message that is more precise we'll need more information than just a line number, but we don't have that during the run time. See https://rt.perl.org/Ticket/Display.html?id=128402 Maybe once RT #128402 is resolved there will be something we could use for that ticket… On 2015-11-28 11:25:00, alex.jakime...@gmail.com wrote: > Thanks! Indeed! I should have tried understanding the issue and golfing it > down myself. > > So the snippet can be golfed down to: > say +126.chr > > The bug is still there, please don't close. In fact, the title is very > precise. > > “126.chr” is still “126.chr”. It is less than awesome to whine about some > symbol that is not written in my code explicitly. > > Awesome error message should go like this: > Cannot convert string '~' to number: base-10 number must begin with valid > digits or '.' in 'say +126.chr⏏' (indicated by ⏏) > > On Sat, Nov 28, 2015 at 7:29 PM, Timo Paulssen via RT < > perl6-bugs-follo...@perl.org> wrote: > > > This error occurs because 126.pick gives 126, 126.chr is "~". Then the > > .. operator tries to numify its RHS, which is "~". That goes wrong, of > > course. > > > > So this is just a precedence problem with ranges. > > > > Do you have a better suggestion for the error message here? Otherwise > > i'd close this as "NOTABUG". > > > > > >