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

Symbols in nested packages not found in some cases #6635

Open
p6rt opened this issue Nov 8, 2017 · 1 comment
Open

Symbols in nested packages not found in some cases #6635

p6rt opened this issue Nov 8, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Nov 8, 2017

Migrated from rt.perl.org#132416 (status was 'new')

Searchable as RT132416$

@p6rt
Copy link
Author

p6rt commented Nov 8, 2017

From alexk@gmx.net

 

 

 

perl6 -v
This is Rakudo version 2017.10 built on MoarVM version 2017.10
implementing Perl 6.c.

 

perl6 -e 'package FOO { package BAR { package FOO​::BAR { our $foobar = 42 }}}; say $FOO​::BAR​::FOO​::BAR​::foobar; say FOO​::BAR​::FOO​::BAR.WHAT;'
(Any)
Could not find symbol '&BAR'
  in block <unit> at -e line 1

 

perl6 -e 'package FOO { package BAR { package GOO​::BAR { our $foobar = 42 }}}; say $FOO​::BAR​::GOO​::BAR​::foobar; say FOO​::BAR​::GOO​::BAR.WHAT;'
42
(BAR)

 

perl6 -e 'package FOO​::BAR​::FOO​::BAR { our $foobar=42; }; say $FOO​::BAR​::FOO​::BAR​::foobar; say FOO​::BAR​::FOO​::BAR.WHAT;'
42
(BAR)

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