3 use warnings FATAL => 'all';
7 use Function::Parameters qw(:strict);;
10 ok eval q{ my $a = [ fun () {}, 1 ]; 1 }, 'anonymous function in list is okay'
11 or diag "eval error: $@";
13 ok eval q{ my $a = [ method () {}, 1 ]; 1 }, 'anonymous method in list is okay'
14 or diag "eval error: $@";