import all tests from Fun
[p5sagit/Function-Parameters.git] / t / foreign / Fun / closure-proto.t
CommitLineData
98478aff 1#!perl
2
3use strict;
4use warnings FATAL => 'all';
5use Test::More;
6
7use Function::Parameters;
8
9{
10 my $x = 10;
11
12 fun bar ($y) {
13 $x * $y
14 }
15}
16
17is(bar(3), 30);
18
19done_testing;