Created
February 23, 2013 21:57
-
-
Save arnsholt/5021528 to your computer and use it in GitHub Desktop.
Multisub and native type constant oddness.
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
my int $x = 4; | |
my int constant y = 4; | |
foo($x); | |
foo(y); | |
multi sub foo(int $x) { say "int" } | |
multi sub foo(Str $x) { say "Str" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment