Skip to content

Commit 01f6069

Browse files
committed
S04-declarations/state: fix will start { 42 } fossil (TimToady)
1 parent 4bae023 commit 01f6069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S04-declarations/state.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ plan 40;
119119
{
120120
my ($a, $b);
121121
my $gen = {
122-
state $svar will start { 42 };
122+
state $svar will start { $_ = 42 };
123123
-> { $svar++ };
124124
}
125125
$a = $gen(); # $svar == 42

0 commit comments

Comments
 (0)