Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 870d189bbc
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.352 kb
use v6;
say "1..2";
multi sub foo ($only_one_arg) {
if $only_one_arg eq "only_one_arg" {
say "ok 1";
else {
say "not ok 1";
multi sub foo ($arg1, $arg2) {
if $arg1 eq "arg1" and $arg2 eq "arg2" {
say "ok 2";
else {
say "not ok 2";
foo "only_one_arg";
foo "arg1", "arg2";
Jump to Line
Something went wrong with that request. Please try again.