summaryrefslogblamecommitdiffstats
path: root/t/state.t
blob: c1fadbfd84ce0475cb30e7f9972713c92a38927d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                   
#!/usr/bin/env perl

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

use 5.10.0;
use Fun;

fun bar ($y) {
    state $x = 10;
    $x * $y;
}

is(bar(3), 30);

done_testing;