-
-
Save coke/9f4df5c5b90b356c40cbfe3cbbe98fb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say 'start'; | |
multi sub trait_mod:<is>(Sub $s, :$foo){ {} | |
say "⟨is foo⟩ has been called with ⟨$foo⟩ on {$s.WHICH}"; | |
} | |
sub bar() is foo<oi‽> { {} | |
say 'bar has been called' | |
} | |
bar(); | |
# OUTPUT: «⟨is foo⟩ has been called with ⟨oi‽⟩ on Sub|47563000startbar has been called» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment