Some kind of fix or workaround for phaylon's parameterized role bug in MXD.
[p5sagit/Devel-Declare.git] / t / padstuff.t
CommitLineData
53e3ab32 1use strict;
2use warnings;
3use Test::More 'no_plan';
4
5sub action (&) { return shift; }
6
7sub handle_action {
8 return (undef, undef, 'my ($self, $c) = (shift, shift);');
9}
10
11use Devel::Declare;
12use Devel::Declare action => [ DECLARE_NONE, \&handle_action ];
13
14my $args;
15
16my $a = action {
17 $args = join(', ', $self, $c);
18};
19
20$a->("SELF", "CONTEXT");
21
22is($args, "SELF, CONTEXT", "args passed ok");