# New Ticket Created by Tadeusz Sośnierz # Please include the string: [perl #127950] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127950 >
The compiler error about undeclared attribute points to nonexistent last+1 line in the file. It would be more helpful if it pointed to the line where the undeclared attribute is accessed. $ cat -n bug.pl 1 unit class Bug; 2 3 method foo { 4 say $!attribute; 5 } $ perl6 bug.pl ===SORRY!=== Error while compiling /home/tadzik/bug.pl Attribute $!attribute not declared in class Bug at /home/tadzik/bug.pl:6 ------> <BOL>⏏<EOL> expecting any of: postfix statement end $ perl6 --version This is Rakudo version 2016.04-2-g6df7ff8 built on MoarVM version 2016.04 implementing Perl 6.c.