Created
September 6, 2010 13:28
-
-
Save nunorc/567037 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
$ cat test.p6 | |
multi f([]) { () } | |
multi f(@list) { | |
say @list.perl; | |
} | |
my @a = (); | |
f(@a); | |
my @b = (1,2,3); | |
f(@b); | |
$ ./perl6 test.p6 | |
No applicable candidates found to dispatch to for 'f'. Available candidates are: | |
:(Positional ()) | |
:(@list) | |
in main program body at line 11:test.p6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment