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

"Cannot use variable to initialize itself" false positive #4490

Closed
p6rt opened this issue Aug 27, 2015 · 3 comments
Closed

"Cannot use variable to initialize itself" false positive #4490

p6rt opened this issue Aug 27, 2015 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 27, 2015

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

Searchable as RT125921$

@p6rt
Copy link
Author

p6rt commented Aug 27, 2015

From @FROGGS

m​: my $py = 0 && try { my $py = 42; $py.bla() }
rakudo-moar a7c845​: OUTPUT«===SORRY!=== Error while compiling
/tmp/GaBH5Z1ixo
Cannot use variable $py in declaration to initialize itself␤at
/tmp/GaBH5Z1ixo​:1
------> my $py = 0 && try { my $py = 42; $⏏py.bla() }
  expecting any of​:␤ term␤»

Seems like it is not seeing the try block, which is meant to prevent this.

@p6rt
Copy link
Author

p6rt commented Aug 27, 2015

From @FROGGS

Patch​: rakudo/rakudo@30161a5f01
Test​: Raku/roast@c86bb568c2

@p6rt p6rt closed this as completed Aug 27, 2015
@p6rt
Copy link
Author

p6rt commented Aug 27, 2015

@FROGGS - Status changed from 'new' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant