Comment #1 by razvan.nitu1305 — 2024-03-28T14:29:50Z
This doesn't seem like a safety violation. Rather that the scope failure should not catch the assert error.
Comment #2 by razvan.nitu1305 — 2024-03-28T14:37:35Z
Scratch that. The problem is that you are not rethrowing the exception/error if you use a goto.
Comment #3 by qs.il.paperinik — 2024-07-23T14:27:04Z
It seems `scope(failure) Fix; After;` lowers to
```d
try
{
After;
}
catch(Throwable __o40)
{
Fix;
throw;
}
```
But it should lower to:
```d
try
{
After;
}
catch(Throwable __th)
{
scope(exit) throw __th;
Fix;
}
```
`scope(failure)` is not supposed to be able to swallow the thrown object.
Comment #4 by robert.schadek — 2024-12-13T19:34:11Z