diff options
Diffstat (limited to 't/cmd')
-rw-r--r-- | t/cmd/lexsub.t | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/cmd/lexsub.t b/t/cmd/lexsub.t index 36689e7e67..d940d1c116 100644 --- a/t/cmd/lexsub.t +++ b/t/cmd/lexsub.t @@ -191,12 +191,10 @@ package main; state sub foo; state sub foo {}; '; -on; is $w, - '"state" subroutine foo masks earlier declaration in same scope at ' + '"state" subroutine &foo masks earlier declaration in same scope at ' . "squidges line 88.\n", - 'redefinition warning for state sub'; -off; + 'warning for state sub masking earlier declaration'; } # Since state vars inside anonymous subs are cloned at the same time as the # anonymous subs containing them, the same should happen for state subs. |