Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
S04-declarations/state: fix will start { 42 } fossil (TimToady)
  • Loading branch information
sorear committed Jul 12, 2011
1 parent 4bae023 commit 01f6069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S04-declarations/state.t
Expand Up @@ -119,7 +119,7 @@ plan 40;
{
my ($a, $b);
my $gen = {
state $svar will start { 42 };
state $svar will start { $_ = 42 };
-> { $svar++ };
}
$a = $gen(); # $svar == 42
Expand Down

0 comments on commit 01f6069

Please sign in to comment.