-
-
Save ab5tract/6fdf18adbc3b659e814835db429f81ba to your computer and use it in GitHub Desktop.
mixing multi subs defined in separate modules
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
unit module A; | |
use Z; | |
multi sub x(R::M $r) is export { $r } |
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
unit module B; | |
use Z; | |
multi sub x(R::N $r) is export { $r } |
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
use A; | |
use B; | |
use Z; | |
dd x(M); | |
dd x(N); |
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
unit module Z; | |
enum R is export <M N>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment