Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!env raku
- role RA {
- method t () { callsame(); "RA".say; }
- }
- role RB {
- method t () { callsame(); "RB".say; }
- }
- my $c = anon class :: { method t () { "c".say; } };
- for RA, RB -> $r {
- $c = $c but $r;
- }
- $c.^roles.say;
- $c.new.t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement