Skip to content

Instantly share code, notes, and snippets.

@nunorc
Created September 6, 2010 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunorc/567037 to your computer and use it in GitHub Desktop.
Save nunorc/567037 to your computer and use it in GitHub Desktop.
$ 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