Subject: | try/finally fails (F:AA + S:K:T) |
A try/finally (from Syntax::Keyword::Try) fails:
async sub with_tryfinally
{
my $x = "A";
try {
await $f;
$x .= "B";
}
finally {
$x .= "C";
}
return $x;
}
This fails with the somewhat-expected
TODO: Unsure how to handle savestack entry of 25 at ...
(The SAVEt_DESTRUCTOR_X that S:K:T uses to implement PUSHFINALLY has the value 25)
However, even if SAVEt_DESTRUCTOR_X is implemented, this test fails semantically, because the `$x` visible inside the `finally` block has become detached from the one shared by the rest of the sub.
--
Paul Evans