diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-09-08 01:40:52 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-09-08 01:42:04 -0500 |
commit | 35d85cfe78dd870384d3aef07a1e852267061097 (patch) | |
tree | 767c0fed4fd40f1cada0da440e01021060fc2ca2 /t/basic.t | |
parent | 49c27e0e6a8aa7067d97e5723c741be4456e3759 (diff) | |
download | fun-35d85cfe78dd870384d3aef07a1e852267061097.tar.gz fun-35d85cfe78dd870384d3aef07a1e852267061097.zip |
make function arguments readonly
Diffstat (limited to 't/basic.t')
-rw-r--r-- | t/basic.t | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -29,4 +29,9 @@ is(sum(1, 2, 3, 4), 10); ok(exists $Foo::{foo}); +fun empty ($bar, $baz) { } + +is(scalar(empty(1, 2)), undef); +is_deeply([empty(1, 2)], []); + done_testing; |