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
accessor method does not count as implementation of required method #2914
Comments
From @edwinstWhen a role requires a method to be implented, rakudo does not consider accessor methods that implement the required method. Also the error message is LTA as it would be nice to know *which* role requires the method. Example: $ cat t2.pl class Giver does Wanter { say Giver.new(:foo(41)).bar; $ ./perl6 t2.pl $ ./perl6 --version IRC log about this topic: 20:52 _edwin when I change to "role FPS" I get an error that ExplicitFPS does not implement the method coeffs 20:58 jnthn _edwin: I think you want method coeffs { @!coeffs } |
From sohtil@gmail.comspectest added: commit 920c5be01d5d4a725226cf49646cf37475e4b84e Add test for RT #115212: [BUG] accessor method does not count as implementation of diff --git a/S14-roles/stubs.t b/S14-roles/stubs.t |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzFixed in commit e2eb219 and test unfudged. Thanks! |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#115212 (status was 'resolved')
Searchable as RT115212$
The text was updated successfully, but these errors were encountered: