Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. use lib 'data/all-modules/cpan/ELIZABETH/Method-Also'; use Method::Also; role A { proto method my_method (|) is also<my-method> { * }; multi method my_method (Str $a) { say 'Str!'; }; multi method my_method (Int $b) { say 'Int!'; }; }; A.new.my_method(42); A.new.my_method('b'); A.new.my-method(42)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement