3 use warnings FATAL => 'all';
7 use Function::Parameters qw(:strict);
11 ok eval q{ $a = [ fun () {}, 1 ]; 1 }, 'anonymous function in list is okay'
12 or diag "eval error: $@";
13 is ref $a->[0], "CODE";
19 ok eval q{ $a = [ method () {}, 1 ]; 1 }, 'anonymous method in list is okay'
20 or diag "eval error: $@";
21 is ref $a->[0], "CODE";