Still reproducible:

<AlexDaniel> 6c: class Foo {␤ method foo {␤ say $!bad;␤ }␤ }␤
<committable6> AlexDaniel, ¦6c (28 commits): «===SORRY!=== Error while
compiling /tmp/Qj1o8IL3bG␤Attribute $!bad not declared in class Foo␤at
/tmp/Qj1o8IL3bG:6␤------> <BOL>⏏<EOL>␤ «exit code = 1»»

On 2017-01-21 16:47:53, agen...@gmail.com wrote:
> Hi there
>
> I've just noted that Rakudo 2017.01 reports the wrong line number for
> any references of misspelled private class attributes. The minimal
> example to reproduce this is as follows:
>
> class Foo {
> method foo {
> say $!bad;
> }
> }
>
> Foo.foo();
>
> Rakudo reports the following:
>
> ===SORRY!=== Error while compiling /home/agentzh/a.p6
> Attribute $!bad not declared in class Foo
> at /home/agentzh/a.p6:7
> ------> }⏏<EOL>
>
> Note the line number is 7 while the offending line is at line 3. It
> seems that rakudo always reports the last line of the containing
> source file, which is never useful.
>
> I haven't tested any other Rakudo releases yet. So I'm not sure if
> it's a long standing issue or just a recent regression.
>
> Thanks for your attention!
>
> Best regards,
> -agentzh

Reply via email to