Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Absolute is Int {};
- class Relative is Int {};
- multi sub a(Absolute $x) {
- say "Absolute";
- }
- multi sub a(Relative $x) {
- say "Relative";
- }
- a(Absolute.new());
- a(Relative.new());
- my Absolute $x = 3; #doesnt work
- my Relative $x = 3; #doesnt work
- my Absolute $x .= new(3); #doesnt work
- my Relative $x .= new(3); #doesnt work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement