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

Referring to a private attribute in a method 'all' after typing a parameter in another method in Rakudo #1289

Closed
p6rt opened this issue Sep 17, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 17, 2009

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

Searchable as RT69202$

@p6rt
Copy link
Author

p6rt commented Sep 17, 2009

From @masak

<masak> rakudo​: class A { has $.a; method x(Str $x) {}; method all() { $!a } }
<p6eval> rakudo 2953ac​: OUTPUT«No such attribute '$!a'␤ [...]
* masak submits rakudobug

This is a strange one. It seems that the important ingredients are the
typing of :$x in the first method, and calling the second method
'all'.

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

From @moritz

Doesn't thrown an error anymore, just needs a test.

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

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

@p6rt
Copy link
Author

p6rt commented Apr 22, 2010

From @moritz

Now tested in S12-attributes/instance.t

@p6rt
Copy link
Author

p6rt commented Apr 22, 2010

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

@p6rt p6rt closed this as completed Apr 22, 2010
@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