summaryrefslogtreecommitdiffstats
path: root/t/closure-proto.t
blob: fbd05af31f40a0e50e6b7a9ec6e0032cf2995a8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;

use Fun;

{
    my $x = 10;

    fun bar ($y) {
        $x * $y
    }
}

is(bar(3), 30);

done_testing;