summaryrefslogtreecommitdiff
path: root/t/cmd/lexsub.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cmd/lexsub.t')
-rw-r--r--t/cmd/lexsub.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/cmd/lexsub.t b/t/cmd/lexsub.t
index e285a84366..ffabbd1b7a 100644
--- a/t/cmd/lexsub.t
+++ b/t/cmd/lexsub.t
@@ -231,9 +231,7 @@ is &$sub2, 49, 'state sub in closure (2)';
my $x = 43;
for $x (765) {
state sub etetetet { $x }
-on;
- is eval{etetetet}, $x, 'state sub ignores for() localisation';
-off;
+ is eval{etetetet}, 43, 'state sub ignores for() localisation';
}
}
# And we also need to test that multiple state subs can close over each