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

redeclaration error when using anon #5137

Closed
p6rt opened this issue Feb 14, 2016 · 4 comments
Closed

redeclaration error when using anon #5137

p6rt opened this issue Feb 14, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Feb 14, 2016

Migrated from rt.perl.org#127540 (status was 'resolved')

Searchable as RT127540$

@p6rt
Copy link
Author

p6rt commented Feb 14, 2016

From @LLFourn

sub foo { };
my $a = anon sub foo { }

===SORRY!=== Error while compiling -e
Redeclaration of routine foo
at -e​:1

Since anon is not going to install the symbol in any scope this is a false
positive. Will fix if I get a chance.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

From @jnthn

On Sat Feb 13 20​:08​:16 2016, lloyd.fourn@​gmail.com wrote​:

sub foo { };
my $a = anon sub foo { }

===SORRY!=== Error while compiling -e
Redeclaration of routine foo
at -e​:1

Since anon is not going to install the symbol in any scope this is a false
positive. Will fix if I get a chance.

Fixed it and did a little code cleanup in the area. Tested in S06-routine-modifiers/scoped-named-subs.t.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

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

@p6rt p6rt closed this as completed Jul 21, 2016
@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

@jnthn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant