Created
June 5, 2023 07:36
-
-
Save gfldex/939d6b4f7a3671813a8c1caa2920842c 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
{ | |
multi sub trait_mod:<is>(Routine \r, :$renamed) { r does role :: { method name { $renamed } } } | |
multi sub foo(Int $) { say &?ROUTINE.name } | |
multi sub foo(Str $) is renamed<stringer> { say &?ROUTINE.name } | |
foo(42); | |
foo('answer'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment