Created
July 2, 2013 04:59
-
-
Save leedo/5906863 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
sub n (*@flat) { | |
say "flattened " ~ @flat.elems; | |
} | |
multi sub m (*@flat) { | |
say "flattened " ~ @flat.elems; | |
} | |
multi sub m ((Range $range)) { | |
say "got Range"; | |
} | |
my $r = 0..10; | |
# works | |
n((1,2,3,)); | |
# works | |
m(($r,)); | |
# Nominal type check failed for parameter '$range' in sub-signature | |
m((1,2,3,)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment