Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- role Foo {
- has $!x is rw;
- has $!y is rw;
- }
- role Bar does Foo {
- method stuff() {
- say $!x;
- }
- }
- class E {
- }
- my E $e = E.new;
- $e does Bar;
- $e.stuff;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement