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

Declaring a class with the name of the first part of a multi-joined name makes the multi-joined name unavailable #2822

Open
p6rt opened this issue Jul 8, 2012 · 1 comment
Labels
oo

Comments

@p6rt
Copy link

@p6rt p6rt commented Jul 8, 2012

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

Searchable as RT114034$

@p6rt
Copy link
Author

@p6rt p6rt commented Jul 8, 2012

From @moritz

13​:29 < moritz> r​: my class A​::B { }; my class A { method x { say A​::B }
}; A.x
13​:29 <+p6eval> rakudo 3e0008​: OUTPUT«Could not find symbol 'A​::&B'␤ in
method x at /tmp/OvsGZroBwS​:1␤ in block <anon> at /tmp/OvsGZroBwS​:1␤␤»
13​:30 < jnthn> That should probably work. Though I suspect the
workaround is...
13​:31 < jnthn> r​: my class A { ... }; my class A​::B { }; my class A {
method x { say A​::B } }; A.x
13​:31 <+p6eval> rakudo 3e0008​: OUTPUT«A​::B()␤»

@p6rt p6rt added the oo 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.