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

Declaration in string interpolation causes bogus redeclaration errror #2824

Closed
p6rt opened this issue Jul 11, 2012 · 5 comments
Closed

Declaration in string interpolation causes bogus redeclaration errror #2824

p6rt opened this issue Jul 11, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 11, 2012

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

Searchable as RT114090$

@p6rt
Copy link
Author

p6rt commented Jul 11, 2012

From @moritz

< PerlJam> r​: say "foo $( my $x = 3 + 4; "bar" ) baz";
<+p6eval> rakudo d8e7b6​: OUTPUT«===SORRY!===␤Redeclaration of symbol
$x␤at /tmp/Aa6FKf8hzs​:1␤»
< PerlJam> (where did I first declare it?)
< PerlJam> bug and LTA error message
< jnthn> The bug is that it thinks it's a redeclaration
< jnthn> There shouldn't be an error.
< jnthn> The error is fine when it's triggered legitimately.

Probably some backtracking that causes the declaration to be run twice.

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

From @FROGGS

looks good now​:

<FROGGS> r​: say "foo $( my $x = 3 + 4; "bar" ) baz";
<p6eval> rakudo e6e158​: OUTPUT«foo bar baz␤»

<FROGGS> p6​: say "a $("b") c"
<p6eval> rakudo e6e158, niecza v22-37-g9c2a362​: OUTPUT«a b c␤»

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

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

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

tested in S02-literals/quoting.t

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

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

@p6rt p6rt closed this as completed Jan 4, 2013
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant