Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (14 sloc) 0.368 kB
use v6;
use Test;
plan 3;
#L<S06/Placeholder variables/>
sub one_placeholder {
is $:bla, 2, "A single named placeholder works";
}
one_placeholder(:bla(2));
sub two_placeholders {
is $:b, 1, "Named dispatch isn't broken for placeholders";
is $:a, 2, "Named dispatch isn't broken for placeholders";
}
two_placeholders(:a(2), :b(1));
# vim: syn=perl6
Jump to Line
Something went wrong with that request. Please try again.