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
Private methods in classes misparsed as variables? #546
Comments
From publiustemp-perl6users@yahoo.comNot even remotely sure how to describe this, but: class Foo { method doit { my method something () { That prints '123'. Comment out the @something lines and it prints "Hello, World!" as expected. $ svn info; uname -a Darwin curtis-poes-computer-3.local 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep 19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386 Cheers, |
From @moritzOn Sat Dec 27 14:05:50 2008, publiustemp-perl6users@yahoo.com wrote:
If you have a method with the same name as an attribute, you override Note that
Which means that user-defined methods can't override implictly generated Thanks for your report, |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudThis now works as of c907d37: $ cat 61774 my A $a .= new; $ ./perl6 61774 Assigning ticket for spectest verification...and then we can close the Pm |
From @jnthnAssigning to moritz++ for spectests (as if I write tests :-P). |
From @moritzAdded as test to the ever-growing spec/S12-methods/instance.t. Cheers, |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61774 (status was 'resolved')
Searchable as RT61774$
The text was updated successfully, but these errors were encountered: