The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl
use strict;
use warnings FATAL => 'all';

use Test::More;

use Function::Parameters qw(:strict);;


ok eval q{ my $a = [ fun () {}, 1 ]; 1 }, 'anonymous function in list is okay'
        or diag "eval error: $@";

ok eval q{ my $a = [ method () {}, 1 ]; 1 }, 'anonymous method in list is okay'
        or diag "eval error: $@";


done_testing;