summaryrefslogtreecommitdiffstats
path: root/t/anon.t
diff options
context:
space:
mode:
Diffstat (limited to 't/anon.t')
-rw-r--r--t/anon.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/anon.t b/t/anon.t
index 844fb97..059aa57 100644
--- a/t/anon.t
+++ b/t/anon.t
@@ -9,4 +9,8 @@ my $fun = fun ($x, $y) { $x * $y };
is($fun->(3, 4), 12);
+my $fun2 = fun ($z, $w = 10) { $z / $w };
+
+is($fun2->(60), 6);
+
done_testing;