Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning "Redeclaration of symbol" (no line number of the first declaration) #4293

Open
p6rt opened this issue Jun 5, 2015 · 3 comments
Open
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jun 5, 2015

Migrated from rt.perl.org#125333 (status was 'open')

Searchable as RT125333$

@p6rt
Copy link
Author

p6rt commented Jun 5, 2015

From @AlexDaniel

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").

@p6rt
Copy link
Author

p6rt commented Jun 5, 2015

From 1parrota@gmail.com

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​:

# 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-archive.perl.org/perl6/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").

@p6rt
Copy link
Author

p6rt commented Jun 5, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant