Skip Menu |
Report information
Id: 125333
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Fri, 5 Jun 2015 16:46:06 +0300
From: Alex Jakimenko <alex.jakimenko [...] gmail.com>
To: rakudobug [...] perl.org
Subject: LTA warning "Redeclaration of symbol" (no line number of the first declaration)
Download (untitled) / with headers
text/plain 265b
Code:

#!/usr/bin/env perl6
my $foo;
my $foo;

Result:

Potential difficulties:
    Redeclaration of symbol $foo
    at ./test.pl:3
    ------> my $foo⏏;

It would be great if it printed the line number of the first declaration (e.g. "first declared on line 2").
Date: Fri, 5 Jun 2015 11:33:40 -0400
To: perl6-compiler [...] perl.org
Subject: Re: [perl #125333] LTA warning "Redeclaration of symbol" (no line number of the first declaration)
From: Parrot Raiser <1parrota [...] gmail.com>
Download (untitled) / with headers
text/plain 734b
I can see that as being tricky too implement. If you get the error message, it's easy enough to ask most editors for all occurrences of the string. On 6/5/15, Alex Jakimenko <perl6-bugs-followup@perl.org> wrote: Show quoted text
> # New Ticket Created by Alex Jakimenko > # Please include the string: [perl #125333] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=125333 > > > > Code: > > #!/usr/bin/env perl6 > my $foo; > my $foo; > > Result: > > Potential difficulties: > Redeclaration of symbol $foo > at ./test.pl:3 > ------> my $foo⏏; > > It would be great if it printed the line number of the first declaration > (e.g. "first declared on line 2"). >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org